]> git.donarmstrong.com Git - debhelper.git/blob - debian/rules
r14: Initial Import
[debhelper.git] / debian / rules
1 #!/usr/bin/make -f
2 # Note that I have to refer to debhelper programs witrh ./, to make sure
3 # I run the most current ones. That's also why there is a symlink to the 
4 # current dh_lib 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 export DH_VERBOSE=1
11
12 test_files=dh_lib
13
14 build:
15         ./dh_testdir $(test_files)
16
17 clean:
18         ./dh_testdir $(test_files)
19         ./dh_testroot
20         ./dh_clean
21
22 # Build architecture-dependent files here.
23 binary-arch: build
24 # We have nothing to do by default.
25
26 # Build architecture-independent files here.
27 binary-indep: build
28         ./dh_testdir $(test_files)
29         ./dh_testroot
30         ./dh_clean
31
32         install -d debian/tmp/usr/bin
33         find . -perm +111 -maxdepth 1 -type f \
34                 -exec install -p {} debian/tmp/usr/bin \;
35         install -d debian/tmp/usr/lib/debhelper
36         cp dh_lib debian/tmp/usr/lib/debhelper
37         cp -a autoscripts debian/tmp/usr/lib/debhelper
38
39         ./dh_installdocs TODO README
40         ./dh_installexamples examples/*
41         ./dh_installmenu
42         ./dh_installmanpages
43         ./dh_installchangelogs
44         ./dh_compress
45         ./dh_fixperms
46         ./dh_suidregister
47         ./dh_installdebfiles
48         ./dh_md5sums
49         ./dh_builddeb
50
51 binary: binary-indep binary-arch
52 .PHONY: build clean binary-indep binary-arch binary