File: rules

package info (click to toggle)
librdf-trine-perl 1.019-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 10,204 kB
  • sloc: perl: 17,601; sql: 20; makefile: 12; sh: 4
file content (18 lines) | stat: -rwxr-xr-x 429 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

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

%:
	dh $@

# avoid binaries (installed as sample files instead)
override_dh_auto_install:
	dh_auto_install -i
	rm $(TMP)/usr/bin/*
	rmdir $(TMP)/usr/bin

override_dh_installexamples:
	dh_installexamples
	find $(TMP)/usr/share/doc/$(PACKAGE)/examples -type f -print0 | \
		xargs -r0 sed -i -e '1s|^#!/usr/bin/env perl|#!/usr/bin/perl|'