File: rules

package info (click to toggle)
pyscard 1.9.7-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,260 kB
  • sloc: python: 7,450; ansic: 2,068; makefile: 38
file content (30 lines) | stat: -rwxr-xr-x 770 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
#!/usr/bin/make -f

build3vers := $(shell py3versions -sv)
build2vers := $(shell pyversions -sv)

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

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

override_dh_auto_build:
	set -e && for i in $(build3vers) $(build2vers); do \
	  python$$i setup.py build; \
	done

override_dh_auto_install:
	set -e && for i in $(build3vers); do \
	  python$$i setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-pyscard; \
	done
	set -e && for i in $(build2vers); do \
	  python$$i setup.py install --install-layout=deb --root $(CURDIR)/debian/python-pyscard; \
	done

override_dh_auto_clean:
	python3 setup.py clean

override_dh_auto_test:
	python3 setup.py test