File: rules

package info (click to toggle)
libcatalyst-modules-perl 41
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 992 kB
  • ctags: 7
  • sloc: perl: 186; sh: 72; makefile: 23
file content (32 lines) | stat: -rwxr-xr-x 685 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
#!/usr/bin/make -f

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)
PERL5LIB= $(TMP)/usr/share/perl5

%:
	dh --with quilt $@

override_dh_clean:
	dh_clean
	rm -rf build-area

override_dh_auto_configure: configure-stamp
configure-stamp:
	DESTDIR=$(TMP) debian/make-module.sh unpack
	touch configure-stamp

override_dh_auto_install: patch-stamp
	DESTDIR=$(TMP) TEST_POD=1 debian/make-module.sh build

patch: patch-stamp
patch-stamp: configure-stamp
	DESTDIR=$(TMP) debian/make-module.sh patch
	touch patch-stamp

unpatch:
	DESTDIR=$(TMP) debian/make-module.sh unpatch
	$(RM) patch-stamp

override_dh_quilt_unpatch: unpatch
override_dh_quilt_patch:   patch-stamp