File: rules

package info (click to toggle)
libcgi-pm-perl 3.38-2lenny3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 956 kB
  • ctags: 372
  • sloc: perl: 5,836; makefile: 21
file content (36 lines) | stat: -rwxr-xr-x 830 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
#!/usr/bin/make -f

include /usr/share/quilt/quilt.make

PACKAGE=$(firstword $(shell dh_listpackages))
TMP=$(CURDIR)/debian/$(PACKAGE)

build: build-stamp
build-stamp: $(QUILT_STAMPFN)
	dh build
	touch $@

clean: unpatch
	# t/start_end_start.t, t/start_end_asterisk.t, t/start_end_end.t
	# are generated on build by t/gen-tests/gen-start-end-tags.pl
	[ ! -f t/start_end_start.t ] ||  rm t/start_end_*
	dh $@

install: install-stamp
install-stamp: build-stamp
	dh install
	# this file is also in libcgi-fast-perl, produced by perl source
	# package. see #489928
	rm -v $(TMP)/usr/share/perl5/CGI/Fast.pm
	# also remove the man page
	rm -v $(TMP)/usr/share/man/man3/CGI::Fast.3pm.gz
	touch $@

binary-arch:

binary-indep: install
	dh $@

binary: binary-arch binary-indep

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