]> git.donarmstrong.com Git - perltidy.git/blob - debian/rules
* upgrade to the 20060614 release
[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
10 PACKAGE=$(shell dh_listpackages)
11
12 ifndef PERL
13 PERL = /usr/bin/perl
14 endif
15
16 TMP     =`pwd`/debian/$(PACKAGE)
17
18 build: build-stamp
19 build-stamp:
20         dh_testdir
21
22         $(PERL) Makefile.PL INSTALLDIRS=vendor
23         $(MAKE) OPTIMIZE="-O2 -g -Wall"
24
25         touch build-stamp
26
27 clean:
28         dh_testdir
29         dh_testroot
30         rm -f build-stamp
31
32         if [ -e Makefile ]; then \
33                 $(MAKE) distclean;\
34                 rm -f Makefile;\
35         fi
36
37         dh_clean
38
39 install: 
40         dh_testdir
41         dh_testroot
42         dh_clean -k
43         dh_installdirs
44
45         $(MAKE) install PREFIX=$(TMP)/usr
46
47
48
49 # Build architecture-dependent files here.
50 binary-arch: build install
51 # We have nothing to do by default.
52
53 # Build architecture-independent files here.
54 binary-indep: build install
55         dh_testdir
56         dh_testroot
57         dh_installdocs BUGS TODO README examples/README docs/README
58         dh_installexamples examples/*
59         dh_installmenu
60         dh_installcron
61         dh_installman
62         dh_installchangelogs CHANGES
63         dh_compress
64         dh_fixperms
65         dh_installdeb
66         dh_perl 
67         dh_gencontrol
68         dh_md5sums
69         dh_builddeb
70
71 binary: binary-indep binary-arch
72 .PHONY: build clean binary-indep binary-arch binary