/[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 2028 by capela, Wed Nov 4 18:59:57 2009 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    
# Line 54  forms = \ Line 56  forms = \
56          src/qsamplerOptionsForm.ui \          src/qsamplerOptionsForm.ui \
57          src/qsamplerMainForm.ui          src/qsamplerMainForm.ui
58    
59  all:    $(name)  translations_sources = \
60            translations/qsampler_cs.ts \
61            translations/qsampler_ru.ts
62    
63    translations_targets = \
64            translations/qsampler_cs.qm \
65            translations/qsampler_ru.qm
66    
67    all:    $(name) $(translations_targets)
68    
69  $(name).mak:    $(name).pro  $(name).mak:    $(name).pro
70          @$(qmake) -o $(name).mak $(name).pro          @$(qmake) -o $(name).mak $(name).pro
# Line 62  $(name).mak:   $(name).pro Line 72  $(name).mak:   $(name).pro
72  $(name):        $(name).mak $(sources) $(headers) $(forms)  $(name):        $(name).mak $(sources) $(headers) $(forms)
73          @make -f $(name).mak          @make -f $(name).mak
74    
75    %.ts:   $(name).pro $(sources) $(headers) $(forms)
76            @$(lupdate) -verbose $(name).pro
77    
78    %.qm:   %.ts
79            @$(lrelease) -verbose $< -qm $@
80    
81  # NOTE: DO NOT DELETE $(DESTDIR) in install and uninstall rules !!!  # NOTE: DO NOT DELETE $(DESTDIR) in install and uninstall rules !!!
82  #       It is mandatory for Debian packaging.  #       It is mandatory for Debian packaging.
# Line 70  install:       $(name) icons/$(name).png Line 85  install:       $(name) icons/$(name).png
85          @install -d -v -m 0755 $(DESTDIR)$(prefix)/bin          @install -d -v -m 0755 $(DESTDIR)$(prefix)/bin
86          @install -d -v -m 0755 $(DESTDIR)$(prefix)/share/pixmaps          @install -d -v -m 0755 $(DESTDIR)$(prefix)/share/pixmaps
87          @install -d -v -m 0755 $(DESTDIR)$(prefix)/share/applications          @install -d -v -m 0755 $(DESTDIR)$(prefix)/share/applications
88            @install -d -v -m 0755 $(DESTDIR)$(prefix)/share/locale
89          @install -v -m 0755 $(name) $(DESTDIR)$(prefix)/bin/$(name)          @install -v -m 0755 $(name) $(DESTDIR)$(prefix)/bin/$(name)
90          @install -v -m 0644 icons/$(name).png $(DESTDIR)$(prefix)/share/pixmaps/$(name).png          @install -v -m 0644 icons/$(name).png $(DESTDIR)$(prefix)/share/pixmaps/$(name).png
91          @install -v -m 0644 $(name).desktop $(DESTDIR)$(prefix)/share/applications/$(name).desktop          @install -v -m 0644 $(name).desktop $(DESTDIR)$(prefix)/share/applications/$(name).desktop
92            @install -v -m 0644 $(translations_targets) $(DESTDIR)$(prefix)/share/locale
93    
94  uninstall:      $(DESTDIR)$(prefix)/bin/$(name)  uninstall:      $(DESTDIR)$(prefix)/bin/$(name)
95          @rm -vf $(DESTDIR)$(prefix)/bin/$(name)          @rm -vf $(DESTDIR)$(prefix)/bin/$(name)
96          @rm -vf $(DESTDIR)$(prefix)/share/pixmaps/$(name).png          @rm -vf $(DESTDIR)$(prefix)/share/pixmaps/$(name).png
97          @rm -vf $(DESTDIR)$(prefix)/share/applications/$(name).desktop          @rm -vf $(DESTDIR)$(prefix)/share/applications/$(name).desktop
98            @rm -vf $(DESTDIR)$(prefix)/share/locale/$(translations_targets)
99            @for x in $(translations_targets); do \
100                    rm -vf $(DESTDIR)$(prefix)/share/locale/`basename $$x`; done
101    
102  clean:  $(name).mak  clean:  $(name).mak
103          @make -f $(name).mak clean          @make -f $(name).mak clean
104          @rm -f $(name) $(name).mak          @rm -f $(name) $(name).mak
105          @rm -rf *.cache *.log *.status          @rm -rf *.cache *.log *.status $(translations_targets)

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

  ViewVC Help
Powered by ViewVC