/[fai]/trunk/debian/rules
ViewVC logotype

Contents of /trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2419 - (show annotations) (download)
Thu Aug 5 22:03:29 2004 UTC (8 years, 10 months ago) by lange
File size: 1483 byte(s)
call dh_clean after make clean
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 include VERSION
11
12 build: build-stamp
13 build-stamp:
14 dh_testdir
15
16 # Add here commands to compile the package.
17 $(MAKE) all
18
19 touch build-stamp
20
21 clean:
22 dh_testdir
23 # dh_testroot
24 rm -f build-stamp
25 # Add here commands to clean up after the build process.
26 -$(MAKE) clean
27 dh_clean
28
29 install: build
30 dh_testdir
31 dh_testroot
32 dh_clean -k
33 dh_installdirs
34 # Add here commands to install the package into debian/fai.
35 $(MAKE) install DESTDIR=${DESTDIR}
36
37 # Build architecture-independent files here.
38 binary-indep: build install
39 dh_testdir
40 dh_testroot
41 # dh_installdebconf
42 dh_installdocs
43 # dh_installexamples
44 # dh_installmenu
45 dh_installman man/*.[1-9]
46 # dh_installinfo
47 dh_installchangelogs
48 # dh_link
49 dh_compress -Xexamples -X.pdf
50 dh_fixperms
51 chmod a+rx ${DOCDIR}/examples/*/class/[0-9][0-9]*
52 chmod -R a+rx ${DOCDIR}/examples/*/scripts/*
53 chmod a+rx ${DOCDIR}/examples/utils/*
54 chmod a+rx ${DESTDIR}/usr/lib/fai/sbin/rcS_fai
55 perl -pi -e 's/FAIVERSIONSTRING/$(VERSIONSTRING)/' ${DOCDIR}/README
56 find ${DESTDIR} -name CVS |xargs rm -rf
57 # You may want to make some executables suid here.
58 dh_installdeb
59 dh_gencontrol
60 dh_md5sums
61 dh_builddeb
62
63 # Build architecture-dependent files here.
64 binary-arch: build install
65
66 binary: binary-indep binary-arch
67 .PHONY: build clean binary-indep binary-arch binary install

Properties

Name Value
svn:eol-style native
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5