]> git.donarmstrong.com Git - debhelper.git/blob - debian/rules
r108: Initial Import
[debhelper.git] / debian / rules
1 #!/usr/bin/make -f
2 # Note that I have to refer to debhelper programs with ./, to make sure
3 # I run the most current ones. That's also why there is a symlink to the 
4 # current dh_lib and the current dh_getopt.pl in this debian/ directory.
5
6 # If any automatic script generation is done in building this package, 
7 # be sure to use the new templates from this package.
8 export DH_AUTOSCRIPTDIR=autoscripts
9
10 # Figure out the current debhelper version.
11 VERSION=$(shell expr "`dpkg-parsechangelog 2>/dev/null`" : \
12         '.*Version: \(.*\).*Distribution:')
13
14 export DH_VERBOSE=1
15
16 test_files=dh_lib
17
18 build:
19         ./dh_testdir $(test_files)
20         sed "s/#DEBHELPER_VERSION#/$(VERSION)/" < dh_testversion.in \
21                 > dh_testversion
22         chmod 755 dh_testversion
23
24 clean:
25         ./dh_testdir $(test_files)
26         ./dh_testroot
27         ./dh_clean dh_testversion
28
29 # Build architecture-dependent files here.
30 binary-arch: build
31 # We have nothing to do by default.
32
33 # Build architecture-independent files here.
34 binary-indep: build
35         ./dh_testdir $(test_files)
36         ./dh_testroot
37         ./dh_clean -k
38         ./dh_installdirs usr/bin usr/lib/debhelper
39
40         find . -perm +111 -maxdepth 1 -type f -not -name "*.pl" \
41                 -exec install -p {} debian/tmp/usr/bin \;
42         cp -a dh_lib dh_getopt.pl *.pm debian/tmp/usr/lib/debhelper
43         cp -a autoscripts debian/tmp/usr/lib/debhelper
44
45         ./dh_installdocs doc/TODO doc/README doc/PROGRAMMING doc/from-debstd
46         ./dh_installexamples examples/*
47         ./dh_installmenu
48         ./dh_installmanpages
49         ./dh_installchangelogs
50         ./dh_movefiles
51         ./dh_compress
52         ./dh_fixperms
53         ./dh_suidregister
54         ./dh_installdeb
55         ./dh_gencontrol
56         ./dh_md5sums
57         ./dh_builddeb
58
59 binary: binary-indep binary-arch
60 .PHONY: build clean binary-indep binary-arch binary