File: rules

package info (click to toggle)
python-pygraphviz 1.14-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 760 kB
  • sloc: ansic: 5,100; python: 2,669; makefile: 64
file content (26 lines) | stat: -rwxr-xr-x 782 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

export PYBUILD_NAME=pygraphviz
export PYBUILD_AFTER_BUILD=cd doc ; PYTHONPATH={build_dir} $(MAKE) html ; cd ..

%:
	dh $@ --buildsystem=pybuild

override_dh_installexamples:
	dh_installexamples -ppython-pygraphviz-doc examples/*

execute_after_dh_installdocs:
	dh_installdocs -ppython-pygraphviz-doc doc/build/html

execute_before_dh_auto_build:
	cp -f pygraphviz/graphviz.py pygraphviz/graphviz.py.bak
	cp -f pygraphviz/graphviz_wrap.c pygraphviz/graphviz_wrap.c.bak
	make swig

execute_before_dh_auto_clean:
	mv -f pygraphviz/graphviz.py.bak pygraphviz/graphviz.py || true
	mv -f pygraphviz/graphviz_wrap.c.bak pygraphviz/graphviz_wrap.c || true