Fix minor breakage (pretty_print) resulting from Jesse's changes.
[DBIx-DBSchema.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 ifndef DESTDIR
17 DESTDIR=..
18 endif
19 TMP     =`pwd`/debian/$(PACKAGE)
20
21 build: build-stamp
22 build-stamp:
23         dh_testdir
24
25         
26         # Add here commands to compile the package.
27         $(PERL) Makefile.PL INSTALLDIRS=vendor
28         $(MAKE) OPTIMIZE="-O2 -g -Wall"
29
30         touch build-stamp
31
32 clean:
33         dh_testdir
34         dh_testroot
35         rm -f build-stamp
36
37         # Add here commands to clean up after the build process.
38         -$(MAKE) realclean
39
40         dh_clean
41
42 install: 
43         dh_testdir
44         dh_testroot
45         dh_clean -k
46         dh_installdirs
47
48         # Add here commands to install the package into debian/tmp.
49         #$(MAKE) install DESTDIR=`pwd`/debian/tmp
50         $(MAKE) install PREFIX=$(TMP)/usr
51
52
53 # Build architecture-dependent files here.
54 binary-arch: build install
55 # We have nothing to do by default.
56
57 # Build architecture-independent files here.
58 binary-indep: build install
59 #       dh_testversion
60         dh_testdir
61         dh_testroot
62         dh_installdocs README
63         dh_installexamples
64         dh_installmenu
65 #       dh_installemacsen
66 #       dh_installinit
67         dh_installcron
68         dh_installman
69 #       dh_undocumented
70         dh_installchangelogs Changes
71         dh_link
72         dh_strip
73         dh_compress
74         dh_fixperms
75 #       dh_makeshlibs
76         dh_installdeb
77         dh_perl 
78         dh_shlibdeps
79         dh_gencontrol
80         dh_md5sums
81         dh_builddeb --destdir=$(DESTDIR)
82
83 source diff:                                                                  
84         @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
85
86 binary: binary-indep binary-arch
87 .PHONY: build clean binary-indep binary-arch binary