File: rules

package info (click to toggle)
libtext-trac-perl 0.12-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 320 kB
  • ctags: 234
  • sloc: perl: 2,742; makefile: 40
file content (52 lines) | stat: -rwxr-xr-x 928 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/make -f

#export DH_VERBOSE=1

PACKAGE = $(shell dh_listpackages)

clean:
	dh_testdir
	dh_testroot
	[ ! -f Makefile ] || $(MAKE) realclean
	dh_clean
	rm -f build-stamp configure-stamp 

configure: configure-stamp
configure-stamp:
	dh_testdir
	perl Makefile.PL INSTALLDIRS=vendor DESTDIR=$(CURDIR)/debian/$(PACKAGE)
	touch configure-stamp

build: build-stamp
build-stamp: configure-stamp
	dh_testdir
	$(MAKE) OPTIMIZE="-O2 -g -Wall"
	$(MAKE) test
	touch build-stamp

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	$(MAKE) install 
	rm -rf $(CURDIR)/debian/$(PACKAGE)/usr/lib

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs Changes
	dh_installdocs README
	dh_compress
	dh_fixperms
	dh_perl
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch: build install

binary: binary-indep binary-arch

.PHONY: clean build install binary-indep binary-arch binary