File: rules

package info (click to toggle)
sourcecodegen 0.6.12-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 152 kB
  • ctags: 207
  • sloc: python: 1,059; makefile: 10; sh: 1
file content (18 lines) | stat: -rwxr-xr-x 645 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

-include /usr/share/python/python.mk
PYVERS=$(shell pyversions -vr debian/control)

%:
	dh --with pydeb --with python-central $@

override_dh_install:
	$(MAKE) -f debian/rules $(PYVERS:%=fix-install-python%)

fix-install-python%:
	# Our tests don't allways compile on all available python versions
	# so we move them into the examples directory.
	# see http://bugs.debian.org/567427
	install -d debian/python-sourcecodegen/usr/share/doc/python-sourcecodegen/examples
	mv debian/python-sourcecodegen$(call py_libdir,$*)/sourcecodegen/tests \
	   debian/python-sourcecodegen/usr/share/doc/python-sourcecodegen/examples/tests$*