--- qsampler/trunk/Makefile.in 2004/05/13 10:23:10 75 +++ qsampler/trunk/Makefile.in 2007/11/21 11:46:40 1504 @@ -6,15 +6,40 @@ headers = config.h \ src/qsamplerAbout.h \ src/qsamplerOptions.h \ + src/qsamplerChannel.h \ src/qsamplerMessages.h \ - src/qsamplerChannelStrip.ui.h \ - src/qsamplerChannelForm.ui.h \ - src/qsamplerOptionsForm.ui.h \ - src/qsamplerMainForm.ui.h + src/qsamplerInstrument.h \ + src/qsamplerInstrumentList.h \ + src/qsamplerDevice.h \ + src/qsamplerUtilities.h \ + src/qsamplerInstrumentForm.h \ + src/qsamplerInstrumentListForm.h \ + src/qsamplerDeviceForm.h \ + src/qsamplerChannelStrip.h \ + src/qsamplerChannelForm.h \ + src/qsamplerOptionsForm.h \ + src/qsamplerMainForm.h sources = src/main.cpp \ src/qsamplerOptions.cpp \ + src/qsamplerChannel.cpp \ src/qsamplerMessages.cpp \ + src/qsamplerInstrument.cpp \ + src/qsamplerInstrumentList.cpp \ + src/qsamplerDevice.cpp \ + src/qsamplerUtilities.cpp \ + src/qsamplerInstrumentForm.cpp \ + src/qsamplerInstrumentListForm.cpp \ + src/qsamplerDeviceForm.cpp \ + src/qsamplerChannelStrip.cpp \ + src/qsamplerChannelForm.cpp \ + src/qsamplerOptionsForm.cpp \ + src/qsamplerMainForm.cpp + +forms = \ + src/qsamplerInstrumentForm.ui \ + src/qsamplerInstrumentListForm.ui \ + src/qsamplerDeviceForm.ui \ src/qsamplerChannelStrip.ui \ src/qsamplerChannelForm.ui \ src/qsamplerOptionsForm.ui \ @@ -25,16 +50,25 @@ $(name).mak: $(name).pro @$(qmake) -o $(name).mak $(name).pro -$(name): $(name).mak $(sources) $(headers) - @make -f $(name).mak $(name) +$(name): $(name).mak $(sources) $(headers) $(forms) + @make -f $(name).mak -install: $(name) icons/$(name).png - @install -vD $(name) $(prefix)/bin/$(name) - @install -vD icons/$(name).png $(prefix)/share/icons/$(name).png -uninstall: $(prefix)/bin/$(name) - @rm -vf $(prefix)/bin/$(name) - @rm -vf $(prefix)/share/icons/$(name).xpm +# NOTE: DO NOT DELETE $(DESTDIR) in install and uninstall rules !!! +# It is mandatory for Debian packaging. + +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 clean: $(name).mak @make -f $(name).mak clean