1 |
prefix = @ac_prefix@ |
2 |
|
3 |
name = qsampler |
4 |
|
5 |
target = src/$(name) |
6 |
|
7 |
headers = \ |
8 |
src/config.h \ |
9 |
src/qsamplerAbout.h \ |
10 |
src/qsamplerOptions.h \ |
11 |
src/qsamplerChannel.h \ |
12 |
src/qsamplerMessages.h \ |
13 |
src/qsamplerInstrument.h \ |
14 |
src/qsamplerInstrumentList.h \ |
15 |
src/qsamplerDevice.h \ |
16 |
src/qsamplerFxSend.h \ |
17 |
src/qsamplerFxSendsModel.h \ |
18 |
src/qsamplerUtilities.h \ |
19 |
src/qsamplerInstrumentForm.h \ |
20 |
src/qsamplerInstrumentListForm.h \ |
21 |
src/qsamplerDeviceForm.h \ |
22 |
src/qsamplerDeviceStatusForm.h \ |
23 |
src/qsamplerChannelStrip.h \ |
24 |
src/qsamplerChannelForm.h \ |
25 |
src/qsamplerChannelFxForm.h \ |
26 |
src/qsamplerOptionsForm.h \ |
27 |
src/qsamplerMainForm.h |
28 |
|
29 |
sources = \ |
30 |
src/qsampler.cpp \ |
31 |
src/qsamplerOptions.cpp \ |
32 |
src/qsamplerChannel.cpp \ |
33 |
src/qsamplerMessages.cpp \ |
34 |
src/qsamplerInstrument.cpp \ |
35 |
src/qsamplerInstrumentList.cpp \ |
36 |
src/qsamplerDevice.cpp \ |
37 |
src/qsamplerFxSend.cpp \ |
38 |
src/qsamplerFxSendsModel.cpp \ |
39 |
src/qsamplerUtilities.cpp \ |
40 |
src/qsamplerInstrumentForm.cpp \ |
41 |
src/qsamplerInstrumentListForm.cpp \ |
42 |
src/qsamplerDeviceForm.cpp \ |
43 |
src/qsamplerDeviceStatusForm.cpp \ |
44 |
src/qsamplerChannelStrip.cpp \ |
45 |
src/qsamplerChannelForm.cpp \ |
46 |
src/qsamplerChannelFxForm.cpp \ |
47 |
src/qsamplerOptionsForm.cpp \ |
48 |
src/qsamplerMainForm.cpp |
49 |
|
50 |
forms = \ |
51 |
src/qsamplerInstrumentForm.ui \ |
52 |
src/qsamplerInstrumentListForm.ui \ |
53 |
src/qsamplerDeviceForm.ui \ |
54 |
src/qsamplerChannelStrip.ui \ |
55 |
src/qsamplerChannelForm.ui \ |
56 |
src/qsamplerChannelFxForm.ui \ |
57 |
src/qsamplerOptionsForm.ui \ |
58 |
src/qsamplerMainForm.ui |
59 |
|
60 |
resources = \ |
61 |
src/qsampler.qrc |
62 |
|
63 |
translations_sources = \ |
64 |
src/translations/qsampler_cs.ts \ |
65 |
src/translations/qsampler_ru.ts |
66 |
|
67 |
translations_targets = \ |
68 |
src/translations/qsampler_cs.qm \ |
69 |
src/translations/qsampler_ru.qm |
70 |
|
71 |
|
72 |
export datarootdir = @datarootdir@ |
73 |
export datadir = @datadir@ |
74 |
export mandir = @mandir@ |
75 |
|
76 |
translations_dir = $(datadir)/$(name)/translations |
77 |
|
78 |
|
79 |
export QMAKE = @ac_qmake@ |
80 |
export LUPDATE = @ac_lupdate@ |
81 |
export LRELEASE = @ac_lrelease@ |
82 |
|
83 |
|
84 |
all: $(target) |
85 |
|
86 |
|
87 |
$(target): $(name).mak $(resources) ${forms} $(sources) $(headers) |
88 |
@$(MAKE) -f $(name).mak |
89 |
|
90 |
$(name).mak: $(name).pro |
91 |
@$(QMAKE) -o $(name).mak $(name).pro |
92 |
|
93 |
|
94 |
translations_lupdate: $(name).pro |
95 |
@$(LUPDATE) -verbose $(name).pro |
96 |
|
97 |
translations_lrelease: translations_lupdate $(translations_targets) |
98 |
|
99 |
%.qm: %.ts |
100 |
@$(LRELEASE) -verbose $< -qm $@ |
101 |
|
102 |
|
103 |
install: $(target) translations_lrelease $(name).1 |
104 |
@$(MAKE) INSTALL_ROOT=$(DESTDIR) -f $(name).mak install |
105 |
@install -d -v -m 0755 $(DESTDIR)$(translations_dir) |
106 |
@install -d -v -m 0755 $(DESTDIR)$(mandir)/man1 |
107 |
@install -v -m 0644 $(translations_targets) $(DESTDIR)$(translations_dir) |
108 |
@install -v -m 0644 $(name).1 $(DESTDIR)$(mandir)/man1 |
109 |
@gzip -vf $(DESTDIR)$(mandir)/man1/$(name).1 |
110 |
|
111 |
uninstall: $(DESTDIR)$(prefix)/bin/$(name) |
112 |
@$(MAKE) INSTALL_ROOT=$(DESTDIR) -f $(name).mak uninstall |
113 |
@rm -rvf $(DESTDIR)$(translations_dir) |
114 |
@rm -vf $(DESTDIR)$(mandir)/man1/$(name).* |
115 |
|
116 |
|
117 |
clean: $(name).mak |
118 |
@$(MAKE) -f $(name).mak clean |
119 |
@rm -f $(target) $(target).mak $(name).mak |
120 |
@rm -rf *.cache *.log *.status $(translations_targets) |