1 |
prefix = @ac_prefix@ |
prefix = @ac_prefix@ |
|
qmake = @ac_qmake@ |
|
2 |
|
|
3 |
name = qsampler |
name = qsampler |
4 |
|
|
5 |
headers = config.h \ |
target = src/$(name) |
6 |
|
|
7 |
|
headers = \ |
8 |
|
src/config.h \ |
9 |
src/qsamplerAbout.h \ |
src/qsamplerAbout.h \ |
10 |
src/qsamplerOptions.h \ |
src/qsamplerOptions.h \ |
11 |
src/qsamplerChannel.h \ |
src/qsamplerChannel.h \ |
12 |
src/qsamplerMessages.h \ |
src/qsamplerMessages.h \ |
13 |
|
src/qsamplerInstrument.h \ |
14 |
|
src/qsamplerInstrumentList.h \ |
15 |
src/qsamplerDevice.h \ |
src/qsamplerDevice.h \ |
16 |
src/qsamplerDeviceForm.ui.h \ |
src/qsamplerFxSend.h \ |
17 |
src/qsamplerChannelStrip.ui.h \ |
src/qsamplerFxSendsModel.h \ |
18 |
src/qsamplerChannelForm.ui.h \ |
src/qsamplerUtilities.h \ |
19 |
src/qsamplerOptionsForm.ui.h \ |
src/qsamplerInstrumentForm.h \ |
20 |
src/qsamplerMainForm.ui.h |
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 \ |
sources = \ |
30 |
|
src/qsampler.cpp \ |
31 |
src/qsamplerOptions.cpp \ |
src/qsamplerOptions.cpp \ |
32 |
src/qsamplerChannel.cpp \ |
src/qsamplerChannel.cpp \ |
33 |
src/qsamplerMessages.cpp \ |
src/qsamplerMessages.cpp \ |
34 |
|
src/qsamplerInstrument.cpp \ |
35 |
|
src/qsamplerInstrumentList.cpp \ |
36 |
src/qsamplerDevice.cpp \ |
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 \ |
src/qsamplerDeviceForm.ui \ |
54 |
src/qsamplerChannelStrip.ui \ |
src/qsamplerChannelStrip.ui \ |
55 |
src/qsamplerChannelForm.ui \ |
src/qsamplerChannelForm.ui \ |
56 |
|
src/qsamplerChannelFxForm.ui \ |
57 |
src/qsamplerOptionsForm.ui \ |
src/qsamplerOptionsForm.ui \ |
58 |
src/qsamplerMainForm.ui |
src/qsamplerMainForm.ui |
59 |
|
|
60 |
all: $(name) |
resources = \ |
61 |
|
src/qsampler.qrc |
62 |
|
|
63 |
|
translations_sources = \ |
64 |
|
src/translations/qsampler_cs.ts \ |
65 |
|
src/translations/qsampler_fr.ts \ |
66 |
|
src/translations/qsampler_ru.ts |
67 |
|
|
68 |
|
translations_targets = \ |
69 |
|
src/translations/qsampler_cs.qm \ |
70 |
|
src/translations/qsampler_fr.qm \ |
71 |
|
src/translations/qsampler_ru.qm |
72 |
|
|
73 |
|
|
74 |
|
export datadir = @ac_datadir@ |
75 |
|
export mandir = @ac_mandir@ |
76 |
|
|
77 |
|
translations_dir = $(datadir)/$(name)/translations |
78 |
|
|
79 |
|
|
80 |
|
export QMAKE = @ac_qmake@ |
81 |
|
export LUPDATE = @ac_lupdate@ |
82 |
|
export LRELEASE = @ac_lrelease@ |
83 |
|
|
84 |
|
# let GCC auto detect whether it (sh/c)ould output its messages in color |
85 |
|
export GCC_COLORS=auto |
86 |
|
|
87 |
|
all: $(target) |
88 |
|
|
89 |
|
|
90 |
|
$(target): $(name).mak $(resources) ${forms} $(sources) $(headers) |
91 |
|
@$(MAKE) -f $(name).mak |
92 |
|
|
93 |
$(name).mak: $(name).pro |
$(name).mak: $(name).pro |
94 |
@$(qmake) -o $(name).mak $(name).pro |
@$(QMAKE) -o $(name).mak $(name).pro |
95 |
|
|
96 |
|
|
97 |
|
translations_lupdate: $(name).pro |
98 |
|
@$(LUPDATE) -verbose -no-obsolete $(name).pro |
99 |
|
|
100 |
|
translations_lrelease: translations_lupdate $(translations_targets) |
101 |
|
|
102 |
|
%.qm: %.ts |
103 |
|
@$(LRELEASE) -verbose $< -qm $@ |
104 |
|
|
105 |
|
|
106 |
|
install: $(target) translations_lrelease $(name).1 |
107 |
|
@$(MAKE) INSTALL_ROOT=$(DESTDIR) -f $(name).mak install |
108 |
|
@install -d -v -m 0755 $(DESTDIR)$(translations_dir) |
109 |
|
@install -d -v -m 0755 $(DESTDIR)$(mandir)/man1 |
110 |
|
@install -v -m 0644 $(translations_targets) $(DESTDIR)$(translations_dir) |
111 |
|
@install -v -m 0644 $(name)*.1 $(DESTDIR)$(mandir)/man1 |
112 |
|
@gzip -vf $(DESTDIR)$(mandir)/man1/$(name)*.1 |
113 |
|
|
114 |
$(name): $(name).mak $(sources) $(headers) |
uninstall: $(DESTDIR)$(prefix)/bin/$(name) |
115 |
@make -f $(name).mak |
@$(MAKE) INSTALL_ROOT=$(DESTDIR) -f $(name).mak uninstall |
116 |
|
@rm -rvf $(DESTDIR)$(translations_dir) |
117 |
|
@rm -vf $(DESTDIR)$(mandir)/man1/$(name)*.1.gz |
118 |
|
|
|
install: $(name) icons/$(name).png |
|
|
@install -vD $(name) $(prefix)/bin/$(name) |
|
|
@install -vD icons/$(name).png $(prefix)/share/icons/$(name).png |
|
|
|
|
|
uninstall: $(prefix)/bin/$(name) |
|
|
@rm -vf $(prefix)/bin/$(name) |
|
|
@rm -vf $(prefix)/share/icons/$(name).png |
|
119 |
|
|
120 |
clean: $(name).mak |
clean: $(name).mak |
121 |
@make -f $(name).mak clean |
@$(MAKE) -f $(name).mak distclean || true |
122 |
@rm -f $(name) $(name).mak |
@rm -f $(target) $(target).mak $(name).mak |
123 |
@rm -rf *.cache *.log *.status |
@rm -rf *.cache *.log *.status $(translations_targets) |