File: rules

package info (click to toggle)
evemu 2.7.0-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,172 kB
  • sloc: sh: 4,331; ansic: 1,706; python: 1,186; makefile: 143; cpp: 11
file content (34 lines) | stat: -rwxr-xr-x 986 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
28
29
30
31
32
33
34
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

python2 := $(shell pyversions --requested --version debian/control)
python3 := $(shell py3versions --requested --version debian/control)

%:
	dh $@ --with python2,python3,autoreconf

override_dh_auto_configure:
	set -e && for pyver in $(python2) $(python3); do \
	  dh_auto_configure \
	    --builddirectory=build-python$$pyver \
	    -- \
	     PYTHON=/usr/bin/python$$pyver \
	    --disable-silent-rules \
	    --disable-integration-tests \
	    ; \
	done

override_dh_auto_build:
	dh_auto_install --builddirectory=build-python$(python3)
	dh_auto_install --builddirectory=build-python$(python2)

override_dh_auto_test:
	dh_auto_test --builddirectory=build-python$(python3)

override_dh_auto_install:
	dh_auto_install --builddirectory=build-python$(python3) -- install
	dh_auto_install --builddirectory=build-python$(python2) -- -C python install

override_dh_install:
	dh_install --fail-missing -X.la -X.pyo -X.pyc