File: rules

package info (click to toggle)
snp-sites 2.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 16,228 kB
  • sloc: ansic: 1,349; perl: 51; makefile: 38; sh: 21
file content (27 lines) | stat: -rwxr-xr-x 645 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
#!/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 $@

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
	find debian -name "lib*.la" -delete

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