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 27 28
|
#!/usr/bin/make -f
export PYBUILD_DESTDIR_python2=debian/python-waitress/
export PYBUILD_DESTDIR_python3=debian/python3-waitress/
export PYBUILD_DISABLE=test
LAST_CHANGE = $(shell dpkg-parsechangelog -S Date)
BUILD_DATE = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
SPHINXOPTS := -N -D html_last_updated_fmt=\"$(BUILD_DATE)\"
%:
dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
override_dh_auto_build:
dh_auto_build -v
$(MAKE) -C docs clean html SPHINXOPTS="$(SPHINXOPTS)"
override_dh_auto_clean:
dh_auto_clean
$(MAKE) -C docs clean
override_dh_auto_install:
dh_auto_install
mv debian/python-waitress/usr/bin/waitress-serve debian/python-waitress/usr/bin/waitress-serve-python2
mv debian/python3-waitress/usr/bin/waitress-serve debian/python3-waitress/usr/bin/waitress-serve-python3
sed -i '1s,.*,#!/usr/bin/python3,' debian/python3-waitress/usr/bin/waitress-serve-python3
.PHONY: override_dh_auto_build override_dh_auto_clean override_dh_auto_install
|