1 |
prefix = @ac_prefix@ |
2 |
qmake = @ac_qmake@ |
3 |
lupdate = @ac_lupdate@ |
4 |
lrelease = @ac_lrelease@ |
5 |
|
6 |
name = qsampler |
7 |
|
8 |
headers = 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 = src/main.cpp \ |
30 |
src/qsamplerOptions.cpp \ |
31 |
src/qsamplerChannel.cpp \ |
32 |
src/qsamplerMessages.cpp \ |
33 |
src/qsamplerInstrument.cpp \ |
34 |
src/qsamplerInstrumentList.cpp \ |
35 |
src/qsamplerDevice.cpp \ |
36 |
src/qsamplerFxSend.cpp \ |
37 |
src/qsamplerFxSendsModel.cpp \ |
38 |
src/qsamplerUtilities.cpp \ |
39 |
src/qsamplerInstrumentForm.cpp \ |
40 |
src/qsamplerInstrumentListForm.cpp \ |
41 |
src/qsamplerDeviceForm.cpp \ |
42 |
src/qsamplerDeviceStatusForm.cpp \ |
43 |
src/qsamplerChannelStrip.cpp \ |
44 |
src/qsamplerChannelForm.cpp \ |
45 |
src/qsamplerChannelFxForm.cpp \ |
46 |
src/qsamplerOptionsForm.cpp \ |
47 |
src/qsamplerMainForm.cpp |
48 |
|
49 |
forms = \ |
50 |
src/qsamplerInstrumentForm.ui \ |
51 |
src/qsamplerInstrumentListForm.ui \ |
52 |
src/qsamplerDeviceForm.ui \ |
53 |
src/qsamplerChannelStrip.ui \ |
54 |
src/qsamplerChannelForm.ui \ |
55 |
src/qsamplerChannelFxForm.ui \ |
56 |
src/qsamplerOptionsForm.ui \ |
57 |
src/qsamplerMainForm.ui |
58 |
|
59 |
translations_sources = \ |
60 |
translations/qsampler_cs.ts \ |
61 |
translations/qsampler_ru.ts |
62 |
|
63 |
translations_targets = \ |
64 |
translations/qsampler_cs.qm \ |
65 |
translations/qsampler_ru.qm |
66 |
|
67 |
all: $(name) $(translations_targets) |
68 |
|
69 |
$(name).mak: $(name).pro |
70 |
@$(qmake) -o $(name).mak $(name).pro |
71 |
|
72 |
$(name): $(name).mak $(sources) $(headers) $(forms) |
73 |
@make -f $(name).mak |
74 |
|
75 |
%.ts: $(name).pro $(sources) $(headers) $(forms) |
76 |
@$(lupdate) -verbose $(name).pro |
77 |
|
78 |
%.qm: %.ts |
79 |
@$(lrelease) -verbose $< -qm $@ |
80 |
|
81 |
# NOTE: DO NOT DELETE $(DESTDIR) in install and uninstall rules !!! |
82 |
# It is mandatory for Debian packaging. |
83 |
|
84 |
install: $(name) icons/$(name).png |
85 |
@install -d -v -m 0755 $(DESTDIR)$(prefix)/bin |
86 |
@install -d -v -m 0755 $(DESTDIR)$(prefix)/share/pixmaps |
87 |
@install -d -v -m 0755 $(DESTDIR)$(prefix)/share/applications |
88 |
@install -d -v -m 0755 $(DESTDIR)$(prefix)/share/locale |
89 |
@install -v -m 0755 $(name) $(DESTDIR)$(prefix)/bin/$(name) |
90 |
@install -v -m 0644 icons/$(name).png $(DESTDIR)$(prefix)/share/pixmaps/$(name).png |
91 |
@install -v -m 0644 $(name).desktop $(DESTDIR)$(prefix)/share/applications/$(name).desktop |
92 |
@install -v -m 0644 $(translations_targets) $(DESTDIR)$(prefix)/share/locale |
93 |
|
94 |
uninstall: $(DESTDIR)$(prefix)/bin/$(name) |
95 |
@rm -vf $(DESTDIR)$(prefix)/bin/$(name) |
96 |
@rm -vf $(DESTDIR)$(prefix)/share/pixmaps/$(name).png |
97 |
@rm -vf $(DESTDIR)$(prefix)/share/applications/$(name).desktop |
98 |
@rm -vf $(DESTDIR)$(prefix)/share/locale/$(translations_targets) |
99 |
@for x in $(translations_targets); do \ |
100 |
rm -vf $(DESTDIR)$(prefix)/share/locale/`basename $$x`; done |
101 |
|
102 |
clean: $(name).mak |
103 |
@make -f $(name).mak clean |
104 |
@rm -f $(name) $(name).mak |
105 |
@rm -rf *.cache *.log *.status $(translations_targets) |