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