]> git.donarmstrong.com Git - debbugs.git/blob - debian/rules
default charset to UTF-8 when it isn't defined
[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         if [ -e Makefile.perl ]; then  \
26                 $(MAKE) -f Makefile.perl clean; \
27         fi;
28         #something to remove all trace and *.trace files?
29         rm -f debbugs.trace Makefile.perl.old
30         dh_clean
31
32 install: install-stamp
33 install-stamp: build
34         dh_testroot
35         dh_clean -k
36         dh_installdirs
37         $(MAKE) install_mostfiles DESTDIR=$(DEST_DIR)
38         $(MAKE) -f Makefile.perl install PREFIX=$(DEST_DIR)/usr
39         touch $@
40
41 binary-arch:
42 # nothing to do, as there aren't any architecture-dependent packages
43
44 binary-indep: build install
45         dh_testdir
46         dh_testroot
47         dh_clean -k
48         dh_installdirs
49         $(MAKE) install_mostfiles DESTDIR=$(DEST_DIR)
50         $(MAKE) -f Makefile.perl install PREFIX=$(DEST_DIR)/usr
51         dh_install --sourcedir=debian/tmp --fail-missing
52         dh_installdocs
53         dh_installchangelogs
54         dh_strip
55         dh_fixperms
56         #chown bugs.bugs $(var_dir)/spool/incoming
57         dh_installdeb
58         dh_perl
59         dh_compress -X examples/text
60         dh_shlibdeps
61         dh_gencontrol
62         dh_md5sums
63         dh_builddeb
64
65
66 binary: binary-indep binary-arch
67 .PHONY: build clean install binary-indep binary-arch binary