1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
#!/usr/bin/make -f
# Made with the iad of dh_make, by Craig Small
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Also some stuff taken from debmake scripts, by Cristopt Lameter.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
#SHELL+=-e
build : build-stamp
build-stamp:
./configure --prefix=/usr --bindir=/usr/games --mandir=/usr/share/man
make
touch build-stamp
clean:
dh_testdir
rm -f build-stamp install-xabacus-stamp install-xmabacus-stamp
# Add here commands to clean up after the build process.
-$(MAKE) distclean
dh_clean -pxabacus -Pdebian/xabacus
dh_clean -pxmabacus -Pdebian/xmabacus
install: install-xabacus-stamp install-xmabacus-stamp
install-xabacus-stamp: build-stamp
dh_testdir
dh_clean -k -pxabacus -Pdebian/xabacus
dh_installdirs -pxabacus -Pdebian/xabacus
$(MAKE) install_xabacus prefix=`pwd`/debian/xabacus/usr bindir=`pwd`/debian/xabacus/usr/games xapploaddir=`pwd`/debian/xabacus/usr/X11R6/lib/X11/app-defaults mandir=`pwd`/debian/xabacus/usr/share/man/man6
dh_installdocs -pxabacus -Pdebian/xabacus
dh_installmenu -pxabacus -Pdebian/xabacus
#dh_installmanpages -pxabacus -Pdebian/xabacus xmabacus.6
dh_installchangelogs -pxabacus -Pdebian/xabacus
dh_strip -pxabacus -Pdebian/xabacus
dh_compress -pxabacus -Pdebian/xabacus
dh_fixperms -pxabacus -Pdebian/xabacus
dh_installdeb -pxabacus -Pdebian/xabacus
dh_shlibdeps -pxabacus -Pdebian/xabacus
dh_gencontrol -pxabacus -Pdebian/xabacus
dh_md5sums -pxabacus -Pdebian/xabacus
dh_builddeb -pxabacus -Pdebian/xabacus
touch install-xabacus-stamp
install-xmabacus-stamp: build-stamp
dh_testdir
dh_clean -k -pxmabacus -Pdebian/xmabacus
dh_installdirs -pxmabacus -Pdebian/xmabacus
$(MAKE) install_xmabacus prefix=`pwd`/debian/xmabacus/usr bindir=`pwd`/debian/xmabacus/usr/games xapploaddir=`pwd`/debian/xmabacus/usr/X11R6/lib/X11/app-defaults mandir=`pwd`/debian/xmabacus/usr/share/man/man6
dh_installdocs -pxmabacus -Pdebian/xmabacus
dh_installmenu -pxmabacus -Pdebian/xmabacus
#dh_installmanpages -pxmabacus -Pdebian/xmabacus xabacus.6
dh_installchangelogs -pxmabacus -Pdebian/xmabacus
dh_strip -pxmabacus -Pdebian/xmabacus
dh_compress -pxmabacus -Pdebian/xmabacus
dh_fixperms -pxmabacus -Pdebian/xmabacus
dh_installdeb -pxmabacus -Pdebian/xmabacus
dh_shlibdeps -pxmabacus -Pdebian/xmabacus
dh_gencontrol -pxmabacus -Pdebian/xmabacus
dh_md5sums -pxmabacus -Pdebian/xmabacus
dh_builddeb -pxmabacus -Pdebian/xmabacus
touch install-xmabacus-stamp
# Build architecture-independent files here.
binary-indep:
# Build architecture-dependent files here.
binary-arch: build install
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary
|