]> git.donarmstrong.com Git - debbugs.git/blob - debian/rules
* Add html/bugs.css
[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 DEST_DIR := $(CURDIR)/debian/tmp
10 PERL ?= /usr/bin/perl
11
12
13 build: build-stamp
14 build-stamp:
15 # Call the test suite
16         $(PERL) Makefile.PL INSTALLDIRS=vendor
17         $(MAKE) -f Makefile.perl
18         $(MAKE) test
19         touch $@
20
21 clean:
22         dh_testdir
23         dh_testroot
24         rm -f *-stamp;
25         -$(MAKE) -f Makefile.perl clean;
26         #something to remove all trace and *.trace files?
27         dh_clean
28
29 install: install-stamp
30 install-stamp: build
31         dh_testroot
32         dh_clean -k
33         dh_installdirs
34         $(MAKE) install_mostfiles DESTDIR=$(DEST_DIR)
35         $(MAKE) -f Makefile.perl install PREFIX=$(DEST_DIR)/usr
36         touch $@
37
38 binary-arch:
39 # nothing to do, as there aren't any architecture-dependent packages
40
41 binary-indep:
42         dh_testdir
43         dh_testroot
44         dh_clean -k
45         dh_installdirs
46         $(MAKE) install_mostfiles DESTDIR=$(DEST_DIR)
47         $(MAKE) -f Makefile.perl install PREFIX=$(DEST_DIR)/usr
48         dh_install --sourcedir=debian/tmp --list-missing
49         dh_installdocs
50         dh_installchangelogs
51         dh_strip
52         dh_fixperms
53         #chown bugs.bugs $(var_dir)/spool/incoming
54         dh_installdeb
55         dh_perl
56         dh_compress -X examples/text
57         dh_shlibdeps
58         dh_gencontrol
59         dh_md5sums
60         dh_builddeb
61
62
63 binary: binary-indep binary-arch
64 .PHONY: build clean install binary-indep binary-arch binary