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 75 76 77
|
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
configure: configure-stamp
configure-stamp:
dh_testdir
QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
touch configure-stamp
build: configure-stamp build-stamp
build-stamp:
dh_testdir
make -f makefile.unx
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# clean up after the build process.
-$(MAKE) -f makefile.unx clean
QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2
rm -rf .pc
dh_clean
install: build
dh_testdir -pwing
dh_testroot -pwing
dh_clean -k -pwing
dh_installdirs -pwing usr/share/doc usr/games var/games usr/share/games/wing
dh_installdirs -pwing-data usr/share/games/wing
# install the package into debian/wing.
install `pwd`/wing `pwd`/debian/wing/usr/games/wing
# Build architecture-independent files here.
binary-indep: build install wing-data
# We have nothing to do by default.
wing-data:
dh_testdir -pwing-data
dh_testroot -pwing-data
cp -a images levels sound debian/wing-data/usr/share/games/wing
dh_installdocs -pwing-data README
dh_installchangelogs -pwing-data
dh_compress -pwing-data
dh_fixperms -pwing-data
dh_installdeb -pwing-data
dh_gencontrol -pwing-data
dh_md5sums -pwing-data
dh_builddeb -pwing-data
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir -pwing
dh_testroot -pwing
cp debian/wing.xpm debian/wing/usr/share/games/wing/
ln -s wing-data `pwd`/debian/wing/usr/share/doc/wing
dh_installmenu -pwing
dh_installman -pwing debian/wing.6
dh_installinfo -pwing
# dh_link -pwing
dh_strip -pwing
dh_compress -pwing
dh_fixperms -pwing
# dh_makeshlibs -pwing
dh_installdeb -pwing
dh_shlibdeps -pwing
dh_gencontrol -pwing
dh_md5sums -pwing
dh_builddeb -pwing
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
|