File: rules

package info (click to toggle)
libfile-copy-link-perl 0.200-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 180 kB
  • sloc: perl: 601; makefile: 11
file content (17 lines) | stat: -rwxr-xr-x 508 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

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

%:
	dh $@

override_dh_auto_configure:
	# Build.PL regenerates the (unused) Maekfile.PL
	[ ! -f $(CURDIR)/Makefile.PL ] || cp $(CURDIR)/Makefile.PL $(CURDIR)/Makefile.PL.sav
	dh_auto_configure
	[ ! -f $(CURDIR)/Makefile.PL.sav ] || mv $(CURDIR)/Makefile.PL.sav $(CURDIR)/Makefile.PL

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