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
|
#!/usr/bin/make -f
# Derived from Ian Jackson's hello example, Christoph Lameter's debmake
# example, and Joey Hess' debhelper example.
build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
# Compatibility with ancient build rules
build-stamp: stamp-build
stamp-build:
dh_testdir
CC=gcc xmkmf -a
$(MAKE) Xaw3d all
touch $@
clean:
dh_testdir
dh_testroot
[ -f Makefile ] || (CC=gcc xmkmf && $(MAKE) Makefiles)
$(MAKE) clean
rm -fr X11 Help/X11
rm -f Widgets/X11/Xaw3d/X11/*
dh_clean stamp-build `find . -type f -name Makefile`
install:
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs usr/bin
$(MAKE) install install.man DESTDIR=`pwd`/debian/axe
rm -f `pwd`/debian/axe/usr/lib/X11/axe*info*
# cd `pwd`/debian/axe/usr/bin && mv axe axe.real
binary-indep:
# There are no architecture-independent packages here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installdocs README
dh_installchangelogs
dh_installmenu
dh_installman
ln -s axe.1x `pwd`/debian/axe/usr/share/man/man1/axe.real.1x
ln -s axe.1x `pwd`/debian/axe/usr/share/man/man1/coaxe.1x
ln -s axe.1x `pwd`/debian/axe/usr/share/man/man1/faxe.1x
# dh_undocumented coaxe.1x faxe.1x
dh_installinfo -n Help/axe.info
# dh_installxaw
dh_strip
dh_compress
dh_fixperms
dh_shlibdeps
dh_gencontrol
dh_installdeb
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary binary-arch binary-indep
|