File: rules

package info (click to toggle)
libcatmandu-z3950-perl 0.06-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 156 kB
  • sloc: perl: 383; makefile: 13
file content (18 lines) | stat: -rwxr-xr-x 451 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

PKG := $(shell dh_listpackages)
TMP := $(CURDIR)/debian/$(PKG)

%:
	dh $@

override_dh_installexamples:
	dh_installexamples
	chmod a+x $(TMP)/usr/share/doc/$(PKG)/examples/*.pl
	sed -i '1s|^#!/usr/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PKG)/examples/*

override_dh_auto_install:
	dh_auto_install
	$(RM) -v $(TMP)/usr/bin/example.txt
	$(RM) -v $(TMP)/usr/bin/z3950_importer.pl
	find $(TMP)/usr -type d -empty -delete