File: rules

package info (click to toggle)
nanofilt 2.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 62,600 kB
  • sloc: python: 261; sh: 34; makefile: 11
file content (22 lines) | stat: -rwxr-xr-x 555 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

# DH_VERBOSE := 1
export LC_ALL=C.UTF-8

include /usr/share/dpkg/default.mk

export PYBUILD_INSTALL_ARGS=--install-scripts=/usr/bin/
export PYBUILD_TEST_ARGS=-k-pytest

include /usr/share/dpkg/default.mk

# for hardening you might like to uncomment this:
# export DEB_BUILD_MAINT_OPTIONS=hardening=+all

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

override_dh_installexamples:
	dh_installexamples
	find debian -name __pycache__ -type d | xargs rm -rf
	find debian/$(DEB_SOURCE)/usr/lib/python* -name scripts -type d | xargs rm -rf