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