File: rules

package info (click to toggle)
libstring-escape-perl 1998.1204-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 56 kB
  • ctags: 18
  • sloc: perl: 133; makefile: 42
file content (55 lines) | stat: -rwxr-xr-x 992 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
53
54
55
#!/usr/bin/make -f
# -*- Makefile -*-

export DH_VERBOSE=1
export DH_COMPAT=2

package_name=libstring-escape-perl

ifndef PERL
PERL=/usr/bin/perl
endif

PERLTMP = `pwd`/debian/$(package_name)

binary: binary-indep binary-arch

binary-indep: build install

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs 
	dh_installdocs README
	dh_installdeb
	dh_fixperms
	dh_compress
	dh_makeshlibs
	dh_strip
	dh_perl
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

build: build-stamp
build-stamp:
	dh_testdir
	$(PERL) Makefile.PL INSTALLDIRS=vendor
	$(MAKE) OPTIMIZE="-O2 -g -Wall"
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	if [ -e Makefile ]; then $(MAKE) -i distclean; fi
	rm -rf config.h config.sh .config UU
	dh_clean build-stamp install-stamp

install: install-stamp
install-stamp:
	dh_testdir
	$(MAKE) install PREFIX=$(CURDIR)/debian/$(package_name)/usr
	find $(PERLTMP) -type f -name .packlist | xargs rm -f

.PHONY: binary binary-arch binary-indep clean