File: rules

package info (click to toggle)
pykcs11 1.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,624 kB
  • ctags: 3,322
  • sloc: cpp: 26,373; python: 3,964; ansic: 1,248; makefile: 52
file content (21 lines) | stat: -rwxr-xr-x 524 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
#!/usr/bin/make -f

build3vers := $(shell py3versions -sv)

%:
	dh $@ --with python3

override_dh_auto_build:
	set -e && for i in $(build3vers); do \
	  cd src ; swig -c++ -python  pykcs11.i ; cp pykcs11_wrap.cxx pykcs11_wrap.cpp ; cp LowLevel.py ../PyKCS11 ; \
	  cd .. ; 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