| 1 | #!/usr/bin/make -f |
| 2 | # -*- mode: makefile; coding: utf-8 -*- |
| 3 | |
| 4 | export PYBUILD_NAME=markdown |
| 5 | export PYGMENTS_VERSION=2.7.1 |
| 6 | |
| 7 | %: |
| 8 | dh $@ --buildsystem=pybuild |
| 9 | |
| 10 | override_dh_auto_build: |
| 11 | dh_auto_build |
| 12 | ifeq ($(filter nodoc,$(DEB_BUILD_OPTIONS)),) |
| 13 | LC_ALL=C.UTF-8 XDG_CACHE_HOME=$(CURDIR)/build/cache PYTHONPATH=$(CURDIR) mkdocs build -d build/docs |
| 14 | endif |
| 15 | |
| 16 | ifeq ($(filter nodoc,$(DEB_BUILD_OPTIONS)),) |
| 17 | override_dh_installdocs: |
| 18 | dh_installdocs |
| 19 | dh_mkdocs -T mkdocs -T libjs-underscore -T mkdocs-nature |
| 20 | endif |
| 21 | |
| 22 | override_dh_compress: |
| 23 | dh_compress -X.txt -Xfavicon.ico -Xsearch_index.json -Xsitemap.xml -Xchangelog.html |
| 24 | |
| 25 | .PHONY: override_dh_auto_build override_dh_compress |