File: rules

package info (click to toggle)
abi-compliance-checker 2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,952 kB
  • sloc: perl: 29,708; xml: 5,057; javascript: 74; makefile: 32; sh: 1
file content (36 lines) | stat: -rwxr-xr-x 1,047 bytes parent folder | download | duplicates (3)
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
30
31
32
33
34
35
36
#!/usr/bin/make -f
#export DH_VERBOSE=1

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@

override_dh_auto_build:
	# nothing

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

override_dh_installchangelogs:
	dh_installchangelogs doc/Changelog.html

debian/abi-compliance-checker.1: debian/abi-compliance-checker.1.in
	help2man --help-option=--info --include=$< \
		--output=$@ --no-info debian/tmp/usr/bin/abi-compliance-checker

override_dh_clean:
	dh_clean debian/dh/dh_acc.1
	dh_clean debian/abi-compliance-checker.1

debian/dh/dh_acc.1: debian/dh/dh_acc
	pod2man -r "dh-acc v$(DEB_VERSION)" -c dh-acc $< $@

# first rule after dh_install should be ok:
override_dh_installdocs: debian/dh/dh_acc.1 debian/abi-compliance-checker.1
	dh_installdocs
	sed -i -e 's@https://s3.amazonaws.com/github/ribbons/@@' ./debian/abi-compliance-checker/usr/share/doc/abi-compliance-checker/*.html

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