File: rules

package info (click to toggle)
pyopengl 3.0.0~b6-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 5,696 kB
  • ctags: 26,182
  • sloc: python: 34,233; ansic: 70; sh: 26; makefile: 15
file content (25 lines) | stat: -rwxr-xr-x 697 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
#!/usr/bin/make -f

DEB_PYTHON_SYSTEM=pycentral

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/dpatch.mk
# needed to use the dpatch tools (like dpatch-edit-patch)
include /usr/share/dpatch/dpatch.make

DEB_DESTDIR=debian/python-opengl
PYVER=$(shell pyversions -vd)

# Install egg-info directories
DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed

pre-build::
	chmod a-x PyOpenGL.egg-info/*

install/python-opengl-doc::
	cd documentation/pydoc/ && PYTHONPATH="../.." python$(PYVER) builddocs.py

clean::
	-sed -i -e '/setup\.cfg/d' PyOpenGL.egg-info/SOURCES.txt
	-rm -f documentation/pydoc/*.html