Commit | Line | Data |
---|---|---|
b5284e05 | 1 | #! /usr/bin/make -f |
2 | ||
3 | export DH_COMPAT = 4 | |
4 | ||
5 | build: | |
6 | make | |
7 | touch build | |
8 | ||
9 | clean: | |
10 | dh_clean | |
11 | make clean | |
12 | rm -f build | |
13 | ||
14 | install: build | |
15 | dh_clean | |
16 | while read file package dir; do \ | |
17 | mkdir -p debian/$$package$$dir; \ | |
18 | cp $$file debian/$$package$$dir/$$file; \ | |
19 | done <debian/inst | |
20 | mkdir -p debian/nsict-utils | |
21 | ||
841e5aca | 22 | binary-indep: |
b5284e05 | 23 | dh_testdir -i |
24 | dh_testroot -i | |
25 | dh_compress -i | |
26 | dh_installdocs -i | |
22fb157c | 27 | dh_perl -i |
bba986ae MW |
28 | dh_python -i |
29 | dh_gencontrol -i | |
b5284e05 | 30 | dh_fixperms -i |
31 | dh_installdeb -i | |
32 | dh_md5sums -i | |
33 | dh_builddeb -i | |
34 | ||
35 | binary-arch: | |
36 | dh_testdir -a | |
37 | dh_testroot -a | |
38 | dh_compress -a | |
39 | dh_installdocs -a | |
40 | dh_strip -a | |
41 | dh_shlibdeps -a | |
bba986ae | 42 | dh_python -a |
b5284e05 | 43 | dh_gencontrol -a |
44 | dh_fixperms -a | |
45 | dh_installdeb -a | |
46 | dh_md5sums -a | |
47 | dh_builddeb -a | |
48 | ||
49 | binary: install binary-indep binary-arch | |
50 | ||
51 | source: | |
52 | rm -rf =inst= | |
53 | mkdir -p =inst=/=deb= | |
54 | make dist INST==inst=/ | |
55 | cd =inst=/=deb=; tar xvfz ../*.tar.gz | |
56 | d=`pwd`; cd ..; dpkg-source -i -b $$d/=inst=/=deb=/* | |
57 | rm -rf =inst= | |
58 | ||
841e5aca | 59 | .PHONY: binary binary-arch binary-indep clean install source |