/[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 1698 by schoenebeck, Sat Feb 16 19:41:05 2008 UTC revision 2842 by capela, Thu Sep 3 09:56:47 2015 UTC
# Line 1  Line 1 
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 \
# Line 24  headers = config.h \ Line 26  headers = config.h \
26          src/qsamplerOptionsForm.h \          src/qsamplerOptionsForm.h \
27          src/qsamplerMainForm.h          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 \
# Line 54  forms = \ Line 57  forms = \
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_ru.ts
66    
67    translations_targets = \
68            src/translations/qsampler_cs.qm \
69            src/translations/qsampler_ru.qm
70    
71    
72    export datarootdir = @datarootdir@
73    export datadir = @datadir@
74    export mandir = @mandir@
75    
76    translations_dir = $(datadir)/$(name)/translations
77    
78    
79    export QMAKE = @ac_qmake@
80    export LUPDATE = @ac_lupdate@
81    export LRELEASE = @ac_lrelease@
82    
83    
84    all:    $(target)
85    
86    
87    $(target):      $(name).mak $(resources) ${forms} $(sources) $(headers)
88            @$(MAKE) -f $(name).mak
89    
90  $(name).mak:    $(name).pro  $(name).mak:    $(name).pro
91          @$(qmake) -o $(name).mak $(name).pro          @$(QMAKE) -o $(name).mak $(name).pro
92    
 $(name):        $(name).mak $(sources) $(headers) $(forms)  
         @make -f $(name).mak  
93    
94    translations_lupdate:   $(name).pro
95            @$(LUPDATE) -verbose $(name).pro
96    
97  # NOTE: DO NOT DELETE $(DESTDIR) in install and uninstall rules !!!  translations_lrelease:  translations_lupdate $(translations_targets)
 #       It is mandatory for Debian packaging.  
98    
99  install:        $(name) icons/$(name).png  %.qm:   %.ts
100          @install -d -v -m 0755 $(DESTDIR)$(prefix)/bin          @$(LRELEASE) -verbose $< -qm $@
101          @install -d -v -m 0755 $(DESTDIR)$(prefix)/share/pixmaps  
102          @install -d -v -m 0755 $(DESTDIR)$(prefix)/share/applications  
103          @install -v -m 0755 $(name) $(DESTDIR)$(prefix)/bin/$(name)  install:        $(target) translations_lrelease $(name).1
104          @install -v -m 0644 icons/$(name).png $(DESTDIR)$(prefix)/share/pixmaps/$(name).png          @$(MAKE) INSTALL_ROOT=$(DESTDIR) -f $(name).mak install
105          @install -v -m 0644 $(name).desktop $(DESTDIR)$(prefix)/share/applications/$(name).desktop          @install -d -v -m 0755 $(DESTDIR)$(translations_dir)
106            @install -d -v -m 0755 $(DESTDIR)$(mandir)/man1
107            @install -v -m 0644 $(translations_targets) $(DESTDIR)$(translations_dir)
108            @install -v -m 0644 $(name).1 $(DESTDIR)$(mandir)/man1
109            @gzip -vf $(DESTDIR)$(mandir)/man1/$(name).1
110    
111  uninstall:      $(DESTDIR)$(prefix)/bin/$(name)  uninstall:      $(DESTDIR)$(prefix)/bin/$(name)
112          @rm -vf $(DESTDIR)$(prefix)/bin/$(name)          @$(MAKE) INSTALL_ROOT=$(DESTDIR) -f $(name).mak uninstall
113          @rm -vf $(DESTDIR)$(prefix)/share/pixmaps/$(name).png          @rm -rvf $(DESTDIR)$(translations_dir)
114          @rm -vf $(DESTDIR)$(prefix)/share/applications/$(name).desktop          @rm -vf $(DESTDIR)$(mandir)/man1/$(name).*
115    
116    
117  clean:  $(name).mak  clean:  $(name).mak
118          @make -f $(name).mak clean          @$(MAKE) -f $(name).mak distclean
119          @rm -f $(name) $(name).mak          @rm -f $(target) $(target).mak $(name).mak
120          @rm -rf *.cache *.log *.status          @rm -rf *.cache *.log *.status $(translations_targets)

Legend:
Removed from v.1698  
changed lines
  Added in v.2842

  ViewVC Help
Powered by ViewVC