File: rules

package info (click to toggle)
python-support 0.5.6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 172 kB
  • ctags: 84
  • sloc: python: 434; perl: 212; sh: 20; makefile: 11
file content (17 lines) | stat: -rwxr-xr-x 560 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk

SUPP=$(shell python -c 'import pysupport; print " ".join(pysupport.py_supported)')

clean::
	rm -f debhelper/dh_pysupport.1 *.pyc

build/python-support::
	cd debhelper && pod2man -c "python-support" -r "$(DEB_VERSION)" dh_pysupport dh_pysupport.1

binary-install/python-support::
	for ver in $(SUPP); do \
	  mkdir -p debian/python-support/usr/lib/$$ver/site-packages ;\
	  ln -s /var/lib/python-support/$$ver/.path debian/python-support/usr/lib/$$ver/site-packages/python-support.pth ;\
	done