| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
#export DH_VERBOSE = 1 |
| 4 |
|
| 5 |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed |
| 6 |
|
| 7 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 8 |
|
| 9 |
export PYBUILD_NAME=gdspy |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ --with python3,sphinxdoc --buildsystem=pybuild |
| 13 |
|
| 14 |
|
| 15 |
override_dh_auto_build: |
| 16 |
dh_auto_build |
| 17 |
|
| 18 |
override_dh_auto_install: |
| 19 |
dh_auto_install |
| 20 |
|
| 21 |
override_dh_python3: |
| 22 |
dh_python3 |
| 23 |
mkdir -p debian/gdspy-common/usr/share/gdspy/ |
| 24 |
mv debian/python3-gdspy/usr/lib/python3/dist-packages/gdspy/data debian/gdspy-common/usr/share/gdspy/ |
| 25 |
|
| 26 |
override_dh_installdocs: |
| 27 |
cd build && PYTHONPATH=../debian/python3-gdspy/usr/lib/$(shell readlink $(shell which python3))/dist-packages http_proxy='127.0.0.1:9' python3 -m sphinx -N -bhtml ../docs html # HTML generator |
| 28 |
cd build && PYTHONPATH=../debian/python3-gdspy/usr/lib/$(shell readlink $(shell which python3))/dist-packages http_proxy='127.0.0.1:9' python3 -m sphinx -N -bman ../docs man # Manpage generator |
| 29 |
dh_installdocs |
| 30 |
|
| 31 |
override_dh_clean: |
| 32 |
dh_clean |
| 33 |
$(RM) -r gdspy.egg-info |