1 |
prefix = @ac_prefix@ |
2 |
qmake = @ac_qmake@ |
3 |
|
4 |
name = qsampler |
5 |
|
6 |
headers = config.h \ |
7 |
src/qsamplerAbout.h \ |
8 |
src/qsamplerOptions.h \ |
9 |
src/qsamplerChannel.h \ |
10 |
src/qsamplerMessages.h \ |
11 |
src/qsamplerInstrument.h \ |
12 |
src/qsamplerInstrumentList.h \ |
13 |
src/qsamplerDevice.h \ |
14 |
src/qsamplerInstrumentForm.h \ |
15 |
src/qsamplerInstrumentListForm.h \ |
16 |
src/qsamplerDeviceForm.h \ |
17 |
src/qsamplerChannelStrip.h \ |
18 |
src/qsamplerChannelForm.h \ |
19 |
src/qsamplerOptionsForm.h \ |
20 |
src/qsamplerMainForm.h \ |
21 |
src/qsamplerUtilities.h |
22 |
|
23 |
sources = src/main.cpp \ |
24 |
src/qsamplerOptions.cpp \ |
25 |
src/qsamplerChannel.cpp \ |
26 |
src/qsamplerMessages.cpp \ |
27 |
src/qsamplerInstrument.cpp \ |
28 |
src/qsamplerInstrumentList.cpp \ |
29 |
src/qsamplerDevice.cpp \ |
30 |
src/qsamplerUtilities.cpp \ |
31 |
src/qsamplerInstrumentForm.cpp \ |
32 |
src/qsamplerInstrumentListForm.cpp \ |
33 |
src/qsamplerDeviceForm.cpp \ |
34 |
src/qsamplerChannelStrip.cpp \ |
35 |
src/qsamplerChannelForm.cpp \ |
36 |
src/qsamplerOptionsForm.cpp \ |
37 |
src/qsamplerMainForm.cpp |
38 |
|
39 |
forms = \ |
40 |
src/qsamplerInstrumentForm.ui \ |
41 |
src/qsamplerInstrumentListForm.ui \ |
42 |
src/qsamplerDeviceForm.ui \ |
43 |
src/qsamplerChannelStrip.ui \ |
44 |
src/qsamplerChannelForm.ui \ |
45 |
src/qsamplerOptionsForm.ui \ |
46 |
src/qsamplerMainForm.ui |
47 |
|
48 |
all: $(name) |
49 |
|
50 |
$(name).mak: $(name).pro |
51 |
@$(qmake) -o $(name).mak $(name).pro |
52 |
|
53 |
$(name): $(name).mak $(sources) $(headers) $(forms) |
54 |
@make -f $(name).mak |
55 |
|
56 |
|
57 |
# NOTE: DO NOT DELETE $(DESTDIR) in install and uninstall rules !!! |
58 |
# It is mandatory for Debian packaging. |
59 |
|
60 |
install: $(name) icons/$(name).png |
61 |
@install -d -v -m 0755 $(DESTDIR)$(prefix)/bin |
62 |
@install -d -v -m 0755 $(DESTDIR)$(prefix)/share/pixmaps |
63 |
@install -d -v -m 0755 $(DESTDIR)$(prefix)/share/applications |
64 |
@install -v -m 0755 $(name) $(DESTDIR)$(prefix)/bin/$(name) |
65 |
@install -v -m 0644 icons/$(name).png $(DESTDIR)$(prefix)/share/pixmaps/$(name).png |
66 |
@install -v -m 0644 $(name).desktop $(DESTDIR)$(prefix)/share/applications/$(name).desktop |
67 |
|
68 |
uninstall: $(DESTDIR)$(prefix)/bin/$(name) |
69 |
@rm -vf $(DESTDIR)$(prefix)/bin/$(name) |
70 |
@rm -vf $(DESTDIR)$(prefix)/share/pixmaps/$(name).png |
71 |
@rm -vf $(DESTDIR)$(prefix)/share/applications/$(name).desktop |
72 |
|
73 |
clean: $(name).mak |
74 |
@make -f $(name).mak clean |
75 |
@rm -f $(name) $(name).mak |
76 |
@rm -rf *.cache *.log *.status |