| 1 |
#!/usr/bin/make -f
|
| 2 |
|
| 3 |
DESTDIR=`pwd`/debian/fai
|
| 4 |
SHAREDIR = $(DESTDIR)/usr/share/fai
|
| 5 |
DOCDIR=$(DESTDIR)/usr/share/doc/fai
|
| 6 |
|
| 7 |
# Uncomment this to turn on verbose mode.
|
| 8 |
#export DH_VERBOSE=1
|
| 9 |
|
| 10 |
# This is the debhelper compatability version to use.
|
| 11 |
export DH_COMPAT=3
|
| 12 |
|
| 13 |
include VERSION
|
| 14 |
|
| 15 |
build: build-stamp
|
| 16 |
build-stamp:
|
| 17 |
dh_testdir
|
| 18 |
|
| 19 |
# Add here commands to compile the package.
|
| 20 |
$(MAKE) all
|
| 21 |
|
| 22 |
touch build-stamp
|
| 23 |
|
| 24 |
clean:
|
| 25 |
dh_testdir
|
| 26 |
# dh_testroot
|
| 27 |
rm -f build-stamp
|
| 28 |
dh_clean
|
| 29 |
# Add here commands to clean up after the build process.
|
| 30 |
-$(MAKE) clean
|
| 31 |
|
| 32 |
install: build
|
| 33 |
dh_testdir
|
| 34 |
dh_testroot
|
| 35 |
dh_clean -k
|
| 36 |
dh_installdirs
|
| 37 |
# Add here commands to install the package into debian/fai.
|
| 38 |
$(MAKE) install DESTDIR=`pwd`/debian/fai
|
| 39 |
|
| 40 |
|
| 41 |
# Build architecture-independent files here.
|
| 42 |
binary-indep: build install
|
| 43 |
# dh_testversion
|
| 44 |
dh_testdir
|
| 45 |
dh_testroot
|
| 46 |
# dh_installdebconf
|
| 47 |
dh_installdocs
|
| 48 |
# dh_installexamples
|
| 49 |
# dh_installmenu
|
| 50 |
dh_installman man/*.[1-9]
|
| 51 |
# dh_installinfo
|
| 52 |
dh_installchangelogs
|
| 53 |
# dh_link
|
| 54 |
dh_compress -Xexamples -X.pdf
|
| 55 |
dh_fixperms
|
| 56 |
chmod a+rx ${DOCDIR}/examples/*/class/[0-9][0-9]*
|
| 57 |
chmod -R a+rx ${DOCDIR}/examples/*/scripts/*
|
| 58 |
chmod a+rx ${DOCDIR}/examples/utils/*
|
| 59 |
chmod a+rx ${DESTDIR}/usr/lib/fai/sbin/rcS_fai
|
| 60 |
perl -pi -e 's/FAIVERSIONSTRING/$(VERSIONSTRING)/' ${DOCDIR}/README
|
| 61 |
find ${DESTDIR} -name CVS |xargs rm -rf
|
| 62 |
# You may want to make some executables suid here.
|
| 63 |
dh_installdeb
|
| 64 |
dh_gencontrol
|
| 65 |
dh_md5sums
|
| 66 |
dh_builddeb
|
| 67 |
|
| 68 |
# Build architecture-dependent files here.
|
| 69 |
binary-arch: build install
|
| 70 |
|
| 71 |
binary: binary-indep binary-arch
|
| 72 |
.PHONY: build clean binary-indep binary-arch binary install
|