File: rules

package info (click to toggle)
libterm-readline-gnu-perl 1.35-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 736 kB
  • ctags: 956
  • sloc: perl: 1,293; makefile: 12
file content (18 lines) | stat: -rwxr-xr-x 453 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)
ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')

%:
	dh $@

override_dh_auto_test:
	LC_ALL=C.UTF-8 dh_auto_test

override_dh_installexamples:
	dh_installexamples
	sed -i '1s|^#.*perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/* \
		$(TMP)$(ARCHLIB)/Term/ReadLine/Gnu/XS.pm