File: rules

package info (click to toggle)
japi-compliance-checker 2.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 648 kB
  • sloc: perl: 8,569; xml: 2,825; makefile: 29
file content (29 lines) | stat: -rwxr-xr-x 776 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
24
25
26
27
28
29
#!/usr/bin/make -f

export DH_VERBOSE=1

%:
	dh $@

destdir=$(shell pwd)

override_dh_auto_build:
	# remove '.pl' from the generated man page by help2man:
	ln japi-compliance-checker.pl japi-compliance-checker
	chmod +x japi-compliance-checker.pl
	help2man --output=debian/japi-compliance-checker.1 --no-info --include=debian/japi-compliance-checker.1.in ./japi-compliance-checker

override_dh_auto_install:
	mkdir -p $(destdir)/debian/tmp/usr
	perl Makefile.pl -install --prefix=/usr --destdir=$(destdir)/debian/tmp

override_dh_install:
	dh_install --sourcedir=$(destdir)/debian/tmp usr
	dh_installdocs doc debian/doc

override_dh_clean:
	dh_clean japi-compliance-checker
	rm -f debian/japi-compliance-checker.1

get-orig-source:
	uscan --download --force-download --rename