File: rules

package info (click to toggle)
snp-sites 2.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 16,224 kB
  • sloc: ansic: 1,349; perl: 51; makefile: 37; sh: 21
file content (26 lines) | stat: -rwxr-xr-x 626 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DH_ALWAYS_EXCLUDE=.gitignore
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

mandir := $(CURDIR)/debian/man

%:
	dh $@ --with autoreconf

override_dh_install:
	dh_install
	d-shlibmove --commit \
		    --multiarch \
		    --exclude-la \
		    --movedev "debian/tmp/usr/include/snp-sites/*.h" usr/include/snp-sites \
			debian/tmp/usr/lib/*/libsnp-sites.so

override_dh_installman:
	mkdir -p $(mandir)
	asciidoctor -a docdate='' -b manpage $(CURDIR)/snp-sites.txt
	mv $(CURDIR)/snp-sites.1 $(mandir)
	dh_installman --