]> git.donarmstrong.com Git - debbugs.git/blob - debian/rules
* Call the tests during package build
[debbugs.git] / debian / rules
1 #!/usr/bin/make -f
2 # Made with the aid of dh_make, by Craig Small
3 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4 # Some lines taken from debmake, by Cristoph Lameter.
5
6 # Uncomment this to turn on verbose mode.
7 #export DH_VERBOSE=1
8
9 tmp_dir         := $(CURDIR)/debian/tmp
10
11 build:
12 # Call the test suite
13         $(MAKE) test
14
15 clean:
16         dh_testdir
17         dh_testroot
18         #something to remove all trace and *.trace files?
19         dh_clean build-stamp
20
21 binary-arch:
22 # nothing to do, as there aren't any architecture-dependent packages
23
24 binary-indep: build install
25         dh_testdir
26         dh_testroot
27         dh_clean -k
28         dh_installdirs
29         $(MAKE) install_mostfiles DESTDIR=$(tmp_dir)
30         dh_installdocs
31         dh_installchangelogs
32         dh_strip
33         dh_compress -X examples/text
34         dh_fixperms
35         #chown bugs.bugs $(var_dir)/spool/incoming
36         dh_installdeb
37         dh_shlibdeps
38         dh_gencontrol
39         dh_md5sums
40         dh_builddeb
41
42 binary: binary-indep binary-arch
43 .PHONY: build clean install binary-indep binary-arch binary