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 8 # This is the debhelper compatability version to use. 9 export DH_COMPAT=3 10 11 configure: configure-stamp 12 configure-stamp: 13 dh_testdir 14 ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info 15 16 touch configure-stamp 17 18 build: configure-stamp build-stamp 19 build-stamp: 20 dh_testdir 21 22 $(MAKE) 23 24 touch build-stamp 25 26 clean: 27 dh_testdir 28 dh_testroot 29 rm -f build-stamp configure-stamp 30 31 -$(MAKE) distclean 32 33 dh_clean 34 35 install: build 36 dh_testdir 37 dh_testroot 38 dh_clean -k 39 dh_installdirs 40 41 $(MAKE) install prefix=$(CURDIR)/debian/bbkeys/usr docdir=\$${prefix}/share/doc/bbkeys 42 43 44 # Build architecture-independent files here. 45 binary-indep: build install 46 # We have nothing to do by default. 47 48 # Build architecture-dependent files here. 49 binary-arch: build install 50 dh_testdir 51 dh_testroot 52 # dh_installdebconf 53 dh_installdocs 54 dh_installexamples 55 dh_installmenu 56 # dh_installlogrotate 57 # dh_installemacsen 58 # dh_installpam 59 # dh_installmime 60 # dh_installinit 61 dh_installcron 62 dh_installman 63 dh_installinfo 64 # dh_undocumented 65 dh_installchangelogs ChangeLog 66 dh_link 67 dh_strip 68 dh_compress 69 dh_fixperms 70 # dh_makeshlibs 71 dh_installdeb 72 # dh_perl 73 dh_shlibdeps 74 dh_gencontrol 75 dh_md5sums 76 dh_builddeb 77 78 binary: binary-indep binary-arch 79 .PHONY: build clean binary-indep binary-arch binary install configure