/[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 2282 by capela, Sun Nov 13 20:29:46 2011 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 24  headers = config.h \ Line 29  headers = config.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 54  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    %.qm:   %.ts
88            @$(lrelease) -verbose $< -qm $@
89    
90    
91    exec_prefix = @exec_prefix@
92    datarootdir = @datarootdir@
93    
94    export bindir = @bindir@
95    export datadir = @datadir@
96    export localedir = @localedir@
97    
98    
99    install:        $(target) $(translations_targets)
100            @make INSTALL_ROOT=$(DESTDIR) -f $(name).mak install
101            @install -d -v -m 0755 $(DESTDIR)$(localedir)
102            @install -v -m 0644 $(translations_targets) $(DESTDIR)$(localedir)
103    
104  # NOTE: DO NOT DELETE $(DESTDIR) in install and uninstall rules !!!  uninstall:      $(DESTDIR)$(bindir)/$(name)
105  #       It is mandatory for Debian packaging.          @make INSTALL_ROOT=$(DESTDIR) -f $(name).mak uninstall
106            @rm -vf $(DESTDIR)$(localedir)/$(translations_targets)
107            @for x in $(translations_targets); do \
108                    rm -vf $(DESTDIR)$(localedir)/`basename $$x`; done
109    
 install:        $(name) icons/$(name).png  
         @install -d -v -m 0755 $(DESTDIR)$(prefix)/bin  
         @install -d -v -m 0755 $(DESTDIR)$(prefix)/share/pixmaps  
         @install -d -v -m 0755 $(DESTDIR)$(prefix)/share/applications  
         @install -v -m 0755 $(name) $(DESTDIR)$(prefix)/bin/$(name)  
         @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  
   
 uninstall:      $(DESTDIR)$(prefix)/bin/$(name)  
         @rm -vf $(DESTDIR)$(prefix)/bin/$(name)  
         @rm -vf $(DESTDIR)$(prefix)/share/pixmaps/$(name).png  
         @rm -vf $(DESTDIR)$(prefix)/share/applications/$(name).desktop  
110    
111  clean:  $(name).mak  clean:  $(name).mak
112          @make -f $(name).mak clean          @make -f $(name).mak clean
113          @rm -f $(name) $(name).mak          @rm -f $(target) $(target).mak $(name).mak
114          @rm -rf *.cache *.log *.status          @rm -rf *.cache *.log *.status $(translations_targets)

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

  ViewVC Help
Powered by ViewVC