/[svn]/qsampler/trunk/Makefile.in
ViewVC logotype

Diff of /qsampler/trunk/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1667 by schoenebeck, Mon Feb 4 23:24:19 2008 UTC revision 2085 by capela, Wed Apr 21 20:46:09 2010 UTC
# Line 1  Line 1 
1  prefix  = @ac_prefix@  prefix  = @ac_prefix@
2  qmake   = @ac_qmake@  qmake   = @ac_qmake@
3    lupdate = @ac_lupdate@
4    lrelease = @ac_lrelease@
5    
6  name    = qsampler  name    = qsampler
7    
8  headers = config.h \  target  = src/$(name)
9    
10    headers = \
11            src/config.h \
12          src/qsamplerAbout.h \          src/qsamplerAbout.h \
13          src/qsamplerOptions.h \          src/qsamplerOptions.h \
14          src/qsamplerChannel.h \          src/qsamplerChannel.h \
# Line 17  headers = config.h \ Line 22  headers = config.h \
22          src/qsamplerInstrumentForm.h \          src/qsamplerInstrumentForm.h \
23          src/qsamplerInstrumentListForm.h \          src/qsamplerInstrumentListForm.h \
24          src/qsamplerDeviceForm.h \          src/qsamplerDeviceForm.h \
25            src/qsamplerDeviceStatusForm.h \
26          src/qsamplerChannelStrip.h \          src/qsamplerChannelStrip.h \
27          src/qsamplerChannelForm.h \          src/qsamplerChannelForm.h \
28          src/qsamplerChannelFxForm.h \          src/qsamplerChannelFxForm.h \
29          src/qsamplerOptionsForm.h \          src/qsamplerOptionsForm.h \
30          src/qsamplerMainForm.h          src/qsamplerMainForm.h
31    
32  sources = src/main.cpp \  sources = \
33            src/qsampler.cpp \
34          src/qsamplerOptions.cpp \          src/qsamplerOptions.cpp \
35          src/qsamplerChannel.cpp \          src/qsamplerChannel.cpp \
36          src/qsamplerMessages.cpp \          src/qsamplerMessages.cpp \
# Line 36  sources = src/main.cpp \ Line 43  sources = src/main.cpp \
43          src/qsamplerInstrumentForm.cpp \          src/qsamplerInstrumentForm.cpp \
44          src/qsamplerInstrumentListForm.cpp \          src/qsamplerInstrumentListForm.cpp \
45          src/qsamplerDeviceForm.cpp \          src/qsamplerDeviceForm.cpp \
46            src/qsamplerDeviceStatusForm.cpp \
47          src/qsamplerChannelStrip.cpp \          src/qsamplerChannelStrip.cpp \
48          src/qsamplerChannelForm.cpp \          src/qsamplerChannelForm.cpp \
49          src/qsamplerChannelFxForm.cpp \          src/qsamplerChannelFxForm.cpp \
# Line 52  forms = \ Line 60  forms = \
60          src/qsamplerOptionsForm.ui \          src/qsamplerOptionsForm.ui \
61          src/qsamplerMainForm.ui          src/qsamplerMainForm.ui
62    
63  all:    $(name)  resources = \
64            src/qsampler.qrc
65    
66    translations_sources = \
67            src/translations/qsampler_cs.ts \
68            src/translations/qsampler_ru.ts
69    
70    translations_targets = \
71            src/translations/qsampler_cs.qm \
72            src/translations/qsampler_ru.qm
73    
74    all:    $(target) $(translations_targets)
75    
76    
77    $(target):      $(name).mak $(resources) ${forms} $(sources) $(headers)
78            @make -f $(name).mak
79    
80  $(name).mak:    $(name).pro  $(name).mak:    $(name).pro
81          @$(qmake) -o $(name).mak $(name).pro          @$(qmake) -o $(name).mak $(name).pro
82    
 $(name):        $(name).mak $(sources) $(headers) $(forms)  
         @make -f $(name).mak  
83    
84    %.ts:   $(name).pro $(resources) ${forms} $(sources) $(headers)
85            @$(lupdate) -verbose $(name).pro
86    
87  # NOTE: DO NOT DELETE $(DESTDIR) in install and uninstall rules !!!  %.qm:   %.ts
88  #       It is mandatory for Debian packaging.          @$(lrelease) -verbose $< -qm $@
89    
90  install:        $(name) icons/$(name).png  
91          @install -d -v -m 0755 $(DESTDIR)$(prefix)/bin  install:        $(target) $(translations_targets)
92          @install -d -v -m 0755 $(DESTDIR)$(prefix)/share/pixmaps          @make INSTALL_ROOT=$(DESTDIR) -f $(name).mak install
93          @install -d -v -m 0755 $(DESTDIR)$(prefix)/share/applications          @install -d -v -m 0755 $(DESTDIR)$(prefix)/share/locale
94          @install -v -m 0755 $(name) $(DESTDIR)$(prefix)/bin/$(name)          @install -v -m 0644 $(translations_targets) $(DESTDIR)$(prefix)/share/locale
         @install -v -m 0644 icons/$(name).png $(DESTDIR)$(prefix)/share/pixmaps/$(name).png  
         @install -v -m 0644 $(name).desktop $(DESTDIR)$(prefix)/share/applications/$(name).desktop  
95    
96  uninstall:      $(DESTDIR)$(prefix)/bin/$(name)  uninstall:      $(DESTDIR)$(prefix)/bin/$(name)
97          @rm -vf $(DESTDIR)$(prefix)/bin/$(name)          @make INSTALL_ROOT=$(DESTDIR) -f $(name).mak uninstall
98          @rm -vf $(DESTDIR)$(prefix)/share/pixmaps/$(name).png          @rm -vf $(DESTDIR)$(prefix)/share/locale/$(translations_targets)
99          @rm -vf $(DESTDIR)$(prefix)/share/applications/$(name).desktop          @for x in $(translations_targets); do \
100                    rm -vf $(DESTDIR)$(prefix)/share/locale/`basename $$x`; done
101    
102    
103  clean:  $(name).mak  clean:  $(name).mak
104          @make -f $(name).mak clean          @make -f $(name).mak clean
105          @rm -f $(name) $(name).mak          @rm -f $(target) $(target).mak $(name).mak
106          @rm -rf *.cache *.log *.status          @rm -rf *.cache *.log *.status $(translations_targets)

Legend:
Removed from v.1667  
changed lines
  Added in v.2085

  ViewVC Help
Powered by ViewVC