File: rules

package info (click to toggle)
libio-pty-perl 1:1.08-1.1
  • links: PTS
  • area: main
  • in suites: bullseye, bullseye-proposed-updates, buster, sid, stretch
  • size: 120 kB
  • ctags: 16
  • sloc: perl: 493; makefile: 39
file content (53 lines) | stat: -rwxr-xr-x 968 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
#!/usr/bin/make -f
# GNU copyright 1997 to 1999 by Joey Hess.

OPTIMIZE += -Wall -g -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,2)

build: build-stamp
build-stamp:
	dh_testdir

	-perl Makefile.PL INSTALLDIRS=vendor
	$(MAKE) OPTIMIZE="$(OPTIMIZE)"

	touch $@

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp

	[ ! -f Makefile ] || $(MAKE) realclean

	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs

	$(MAKE) install DESTDIR=$(CURDIR)/debian/libio-pty-perl
	-find debian/libio-pty-perl -depth -type d | xargs rmdir 2>/dev/null

binary-indep: build install

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installdocs -s
	dh_installchangelogs -s ChangeLog
	dh_link -s
	dh_strip -s
	dh_compress -s
	dh_installexamples -s
	dh_fixperms -s
	dh_installdeb -s
	dh_perl -s
	dh_shlibdeps -s
	dh_gencontrol -s
	dh_md5sums -s
	dh_builddeb -s

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