File: rules

package info (click to toggle)
pairtools 0.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,288 kB
  • sloc: python: 4,288; makefile: 255; sh: 125
file content (27 lines) | stat: -rwxr-xr-x 728 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

DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1

export PYBUILD_DESTDIR_python3=debian/python3-pairtools/
export PYBUILD_DESTDIR_python3-dbg=debian/python3-pairtools-dbg/

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_clean:
	dh_auto_clean
	find . -name "_*.c" -delete

override_dh_auto_install:
	cd doc && make man
	dh_auto_install

override_dh_strip:
	dh_strip -ppython3-pairtools --dbg-package=python3-pairtools-dbg
	rm -rf debian/python3-pairtools-dbg/usr/share/doc/python3-pairtools-dbg
	ln -s python3-pairtools debian/python3-pairtools-dbg/usr/share/doc/python3-pairtools-dbg

override_dh_installdeb:
	rm -rf ./debian/python3-pairtools-dbg/usr/bin
	dh_installdeb