File: rules

package info (click to toggle)
python-pypm 0.0.7-7
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 100 kB
  • sloc: python: 155; makefile: 16
file content (29 lines) | stat: -rwxr-xr-x 638 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
#!/usr/bin/make -f

# See http://svn.debian.org/viewsvn/collab-maint/deb-maint/python-support/trunk/README
PYVERS=$(shell pyversions -vs)

# those takes care of default rules 
DEB_PYTHON_SYSTEM= pysupport
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_pysupport

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