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