File: rules

package info (click to toggle)
termbox 1.1.2%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 844 kB
  • sloc: python: 12,912; ansic: 1,717; makefile: 20
file content (26 lines) | stat: -rwxr-xr-x 564 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
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with python3

override_dh_auto_clean:
	:

override_dh_auto_configure:
	python3 waf configure \
		--prefix=/usr \
		--libdir=usr/lib/$(DEB_HOST_MULTIARCH)/

override_dh_auto_build:
	python3 waf
	for PY in $(shell py3versions -rs); do \
		$$PY setup.py build; done

override_dh_auto_install:
	python3 waf install \
		--destdir=$(shell pwd)/debian/tmp/
	for PY in $(shell py3versions -rs); do \
		$$PY setup.py install \
			--install-layout=deb \
			--root=$(shell pwd)/debian/tmp; done