debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | # generate documentation unless nodoc requested |
| 4 | ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) |
| 5 | DOCS = README.html README.txt |
| 6 | endif |
| 7 | |
| 8 | override_dh_auto_build: $(DOCS) |
| 9 | |
| 10 | override_dh_installdocs: |
| 11 | dh_installdocs --all -- $(DOCS) |
| 12 | |
| 13 | override_dh_clean: |
| 14 | dh_clean -- $(DOCS) |
| 15 | |
| 16 | %.html: %.md |
| 17 | pandoc --from gfm-raw_html --to html --standalone --output $@ $< |
| 18 | |
| 19 | %.txt: %.md |
| 20 | pandoc --from gfm-raw_html --to plain --output $@ $< |
| 21 | |
| 22 | %: |
| 23 | dh $@ |