Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
4 PACKAGE=$(shell dh_listpackages)
5 TMP=$(CURDIR)/debian/$(PACKAGE)
6
7 configure: Makefile
8 Makefile: Makefile.PL
9 dh_testdir
10 perl Makefile.PL INSTALLDIRS=vendor
11
12 build-arch: build
13 build-indep: build
14
15 build: build-stamp
16
17 build-stamp: configure
18 dh_testdir
19 $(MAKE) OPTIMIZE="-O2 -g -Wall"
20 touch build-stamp
21
22 clean:
23 dh_testdir
24 dh_testroot
25 rm -f build-stamp
26 [ ! -f Makefile ] || $(MAKE) distclean
27 rm -f Makefile Makefile.old
28 dh_clean
29
30 # Build architecture-independent files here.
31 binary-indep: build
32 dh_testdir
33 dh_testroot
34 dh_clean
35 dh_installdirs
36 $(MAKE) test
37 $(MAKE) install DESTDIR=$(CURDIR)/debian/$(PACKAGE)
38 dh_install
39 dh_installdocs -n
40 dh_installchangelogs Changes
41 dh_compress
42 dh_fixperms
43 dh_installdeb
44 dh_perl
45 dh_gencontrol
46 dh_md5sums
47 dh_builddeb
48
49 # Build architecture-dependent files here.
50 binary-arch: build
51
52 binary: binary-indep binary-arch
53 .PHONY: build clean binary-indep binary-arch binary configure