debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | #export DH_VERBOSE = 1 |
| 3 | |
| 4 | MARKDOWN_DOCS=$(wildcard Docs/*.md) |
| 5 | HTML_DOCS=$(MARKDOWN_DOCS:.md=.html) |
| 6 | |
| 7 | %: |
| 8 | dh $@ --with python3 --buildsystem=pybuild |
| 9 | |
| 10 | Docs/%.html: Docs/%.md |
| 11 | pandoc -f markdown_github -t html -o $@ $^ |
| 12 | |
| 13 | override_dh_installdocs: $(HTML_DOCS) |
| 14 | dh_installdocs |
| 15 | |
| 16 | override_dh_compress: |
| 17 | dh_compress -X.py |