File: rules

package info (click to toggle)
pykcs11 1.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 532 kB
  • sloc: python: 2,403; cpp: 1,426; ansic: 1,284; makefile: 59; sh: 4
file content (23 lines) | stat: -rwxr-xr-x 517 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

build3vers := $(shell py3versions -sv)

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

%:
	dh $@ --with python3

override_dh_auto_build:
	set -e && for i in $(build3vers); 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-pykcs11; \
	done

override_dh_auto_clean:
	python3 setup.py clean