1#!/usr/bin/make -f 2# Sample debian/rules that uses debhelper. 3# GNU copyright 1997 to 1999 by Joey Hess. 4 5# Uncomment this to turn on verbose mode. 6#export DH_VERBOSE=1 7 8DOCDIR=`pwd`/debian/searchandrescue/usr/share/doc/searchandrescue/html/ 9 10configure: configure-stamp 11configure-stamp: 12 dh_testdir 13 # Add here commands to configure the package. 14 ./configure Linux 15 16 touch configure-stamp 17 18build: configure-stamp build-stamp 19build-stamp: 20 dh_testdir 21 22 # Add here commands to compile the package. 23 $(MAKE) 24 25 touch build-stamp 26 27clean: 28 dh_testdir 29 dh_testroot 30 rm -f build-stamp configure-stamp 31 32 # Add here commands to clean up after the build process. 33 [ ! -f Makefile ] || $(MAKE) clean 34 -rm -f sar/SearchAndRescue 35 -rm -f pconf/pconf 36 -rm -f sar/Makefile 37 -rm -f sar/this_platform.ini 38 39 dh_clean 40 41install: build 42 dh_testdir 43 dh_testroot 44 dh_clean -k 45 dh_installdirs 46 47 # Add here commands to install the package into debian/tmp. 48 $(MAKE) install DESTDIR=`pwd`/debian/searchandrescue 49 50# mkdir -p $(DOCDIR) 51# install -m 0444 docs/*.png docs/*.html $(DOCDIR) 52 53 # Create directory .../debian/searchandrescue-common. 54 install -d -g root -m 755 -o root `pwd`/debian/searchandrescue-common/usr/share 55 # Move common files. 56# mv `pwd`/debian/searchandrescue/usr/share/doc `pwd`/debian/searchandrescue-common/usr/share 57 mv `pwd`/debian/searchandrescue/usr/X11R6/include/X11/pixmaps `pwd`/debian/searchandrescue-common/usr/share 58 rm -r `pwd`/debian/searchandrescue/usr/X11R6 59 # Desktop file 60 install -d -g root -m 755 -o root `pwd`/debian/searchandrescue/usr/share/applications 61 install -m 644 debian/SearchAndRescue.desktop `pwd`/debian/searchandrescue/usr/share/applications/SearchAndRescue.desktop 62 # Lintian overrides 63 install -d -g root -m 755 -o root `pwd`/debian/searchandrescue/usr/share/lintian/overrides 64 install -m 644 debian/lintian-overrides.searchandrescue \ 65 `pwd`/debian/searchandrescue/usr/share/lintian/overrides/searchandrescue 66 # Un-bzip the manpage. 67 bunzip2 `pwd`/debian/searchandrescue/usr/share/man/man6/SearchAndRescue.6.bz2 68 69# Build architecture-independent files here. 70binary-indep: build install 71 dh_testdir -i 72 dh_testroot -i 73 dh_installdocs -i 74 dh_installmenu -i 75# dh_installmanpages -i 76 dh_desktop 77 dh_installchangelogs -i 78 dh_strip -i 79 dh_compress -i 80 dh_fixperms -i 81 dh_installdeb -i 82 dh_shlibdeps -i 83 dh_gencontrol -i 84 dh_md5sums -i 85 dh_builddeb -i 86 87# Build architecture-dependent files here. 88binary-arch: build install 89 dh_testdir -a 90 dh_testroot -a 91 dh_installdocs -a 92 dh_installmenu -a 93# dh_installmanpages -a 94 dh_desktop 95 dh_installchangelogs -a 96 dh_strip -a 97 dh_compress -a 98 dh_fixperms -a 99 dh_installdeb -a 100 dh_shlibdeps -a 101 dh_gencontrol -a 102 dh_md5sums -a 103 dh_builddeb -a 104 105binary: binary-indep binary-arch 106.PHONY: build clean binary-indep binary-arch binary install configure 107