]> git.donarmstrong.com Git - perltidy.git/blob - debian/rules
5241f1b7d24800cefdd1f4e90ef6821063016099
[perltidy.git] / debian / rules
1 #!/usr/bin/make -f
2 #-*- makefile -*-
3 # Made with the aid of dh_make, by Craig Small
4 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
5 # Some lines taken from debmake, by Christoph Lameter.
6
7 # Uncomment this to turn on verbose mode.
8 #export DH_VERBOSE=1
9 export DH_COMPAT=3
10
11 PACKAGE=$(shell dh_listpackages)
12
13 ifndef PERL
14 PERL = /usr/bin/perl
15 endif
16
17 TMP     =`pwd`/debian/$(PACKAGE)
18
19 build: build-stamp
20 build-stamp:
21         dh_testdir
22
23         $(PERL) Makefile.PL INSTALLDIRS=vendor
24         $(MAKE) OPTIMIZE="-O2 -g -Wall"
25
26         touch build-stamp
27
28 clean:
29         dh_testdir
30         dh_testroot
31         rm -f build-stamp
32
33         if [ -e Makefile ]; then \
34                 $(MAKE) distclean;\
35                 rm -f Makefile;\
36         fi
37
38         dh_clean
39
40 install: 
41         dh_testdir
42         dh_testroot
43         dh_clean -k
44         dh_installdirs
45
46         $(MAKE) install PREFIX=$(TMP)/usr
47
48
49
50 # Build architecture-dependent files here.
51 binary-arch: build install
52 # We have nothing to do by default.
53
54 # Build architecture-independent files here.
55 binary-indep: build install
56         dh_testdir
57         dh_testroot
58         dh_installdocs BUGS TODO README examples/README docs/README
59         dh_installexamples examples/*
60         dh_installmenu
61         dh_installcron
62         dh_installman
63         dh_installchangelogs CHANGES
64         dh_compress
65         dh_fixperms
66         dh_installdeb
67         dh_perl 
68         dh_gencontrol
69         dh_md5sums
70         dh_builddeb
71
72 binary: binary-indep binary-arch
73 .PHONY: build clean binary-indep binary-arch binary