File: rules

package info (click to toggle)
pymilter 1.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,020 kB
  • sloc: python: 3,343; ansic: 1,333; makefile: 34; sh: 8
file content (27 lines) | stat: -rwxr-xr-x 614 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
23
24
25
26
27
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with python3

override_dh_auto_clean:
	set -e && for py3vers in $(shell py3versions -vr); do \
	   python$$py3vers setup.py clean -a; \
	done
	dh_clean
	rm -rf $(CURDIR)/build
	rm -rf $(CURDIR)/doc/latex
	rm -rf $(CURDIR)/doc/html

override_dh_auto_build-arch:
	:
override_dh_auto_build-indep:
	doxygen

override_dh_auto_install-arch:
	set -e && for py3vers in $(shell py3versions -vr); do \
	  python$$py3vers setup.py install --no-compile -O0 --install-layout=deb \
	    --root $(CURDIR)/debian/python3-milter; \
	done
	dh_install