File: rules

package info (click to toggle)
libparse-recdescent-perl 1.967015%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 768 kB
  • sloc: perl: 6,797; makefile: 15; ansic: 9
file content (21 lines) | stat: -rwxr-xr-x 491 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
#!/usr/bin/make -f

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

%:
	dh $@

override_dh_installexamples:
	dh_installexamples
	sed -i '1s|^#!\s*/usr/local/bin/perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/*

override_dh_fixperms:
	dh_fixperms
	chmod -x $(TMP)/usr/share/doc/$(PACKAGE)/examples/*

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test
	perl -Iblib/lib $(CURDIR)/debian/test-arg-alternation.pl
endif