File: rules

package info (click to toggle)
python-pypm 0.0.7-8
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 92 kB
  • ctags: 109
  • sloc: python: 155; makefile: 15
file content (27 lines) | stat: -rwxr-xr-x 520 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
#!/usr/bin/make -f

PYVERS=$(shell pyversions -vs)

# those takes care of default rules 
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk

build: $(PYVERS:%=build-python%)
	touch $@

build-python%:
	python$* setup.py build
	touch $@


install: build $(PYVERS:%=install-python%)

install-python%:
	python$* setup.py install --root $(CURDIR)/debian/python-pypm

binary-arch/python-pypm::
	dh_python2

cleanbuilddir/python-pypm::
	- rm -f pypm.c build-stamp configure-stamp