File: rules

package info (click to toggle)
vcftools 0.1.14%2Bdfsg-4%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,908 kB
  • sloc: cpp: 13,928; perl: 11,080; ansic: 1,467; sh: 135; makefile: 100
file content (33 lines) | stat: -rwxr-xr-x 1,093 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
30
31
32
33
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
sampledir:=$(CURDIR)/debian/$(DEBPKGNAME)/usr/share/doc/$(DEBPKGNAME)/examples

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- --with-pmdir=/usr/share/perl5

override_dh_installchangelogs:
	dh_installchangelogs src/perl/ChangeLog

get-orig-source:
	mkdir -p ../tarballs
	uscan --verbose --force-download --repack --compression xz --destdir=../tarballs --no-symlink

override_dh_installexamples:
	dh_installexamples;
	mkdir -p $(sampledir)/testsuite;
	mkdir -p $(sampledir)/testdata;
	cp ./examples/* $(sampledir)/testdata/;
	find ./src/perl/ \( -name "*.pm" -o -name "*fill*" -o -name "test.t" \) -exec cp \{\} $(sampledir)/testsuite \;
	sed -i 's#examples#testdata#g' $(sampledir)/testsuite/test.t;
	sed -i 's#I\.\./perl/#I\.\./\.#g' $(sampledir)/testsuite/test.t;
	sed -i 's#\.\./perl/#/usr/bin/#g' $(sampledir)/testsuite/test.t;