File: rules

package info (click to toggle)
perl-tk 1%3A804.033-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 34,724 kB
  • ctags: 37,174
  • sloc: ansic: 349,541; perl: 52,192; sh: 17,904; makefile: 5,732; asm: 3,565; ada: 1,681; pascal: 1,089; cpp: 1,006; yacc: 883; cs: 879
file content (74 lines) | stat: -rwxr-xr-x 1,404 bytes parent folder | download | duplicates (2)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/usr/bin/make -f
# -*-makefile-*-
# debian/rules file for perl-tk

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

PERL ?= /usr/bin/perl

package	:= $(firstword $(shell dh_listpackages))
prefix	:= $(CURDIR)/debian/$(package)

version	:= $(shell dpkg-parsechangelog | \
			sed -ne 's/^Version: *\([0-9]\+:\)*//p')

tag:
	cvs tag -c -F $(subst .,_,debian_version_$(version))
ifeq ($(findstring -,$(version)),)
	cvs tag -c -F $(subst .,_,upstream_version_$(version))
endif

config:	config-stamp
config-stamp:
	dh_testdir
	$(PERL) Makefile.PL XFT=1 INSTALLDIRS=vendor PERL=$(PERL)
	touch $@

build-arch: build
build-indep: build

build:	build-stamp
build-stamp:	config-stamp
	$(MAKE) LD_RUN_PATH= OPTIMIZE="$(CFLAGS)"
	touch $@

clean:	checkroot
	-rm -rf *-stamp
	[ ! -f Makefile ] || $(MAKE) distclean
	dh_clean

binary-indep:	checkroot build-stamp

binary-arch:	checkroot build-stamp
	dh_clean
	dh_installdirs

	$(MAKE) pure_install DESTDIR=$(prefix)

	-rm -rf $(prefix)/usr/bin/gedi

	dh_installdocs README README.linux VERSIONS
	dh_installexamples
	dh_installchangelogs Changes

	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_perl
	dh_makeshlibs
	dh_shlibdeps
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary:		binary-indep binary-arch

checkroot:
	dh_testdir
	dh_testroot

.PHONY:  binary binary-indep binary-arch clean checkroot build build-arch build-indep config