File: rules

package info (click to toggle)
libxml-xql-perl 0.68-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 772 kB
  • sloc: perl: 5,842; xml: 4,007; makefile: 16
file content (23 lines) | stat: -rwxr-xr-x 548 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
22
23
#!/usr/bin/make -f

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

%:
	dh $@

override_dh_auto_build:
	[ ! -f XQLParser/Parser.pm ] || mv -v XQLParser/Parser.pm debian
	dh_auto_build

override_dh_auto_install:
	dh_auto_install
	$(RM) -r $(CURDIR)/debian/libxml-xql-perl/usr/bin

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

override_dh_auto_clean:
	[ ! -f debian/Parser.pm ] || mv -v debian/Parser.pm XQLParser
	dh_auto_clean