| 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 |
%: |
| 9 |
dh $@ |
| 10 |
|
| 11 |
%.html: %.md |
| 12 |
pandoc --from gfm-raw_html --to html --standalone --output $@ $< |
| 13 |
|
| 14 |
%.txt: %.md |
| 15 |
pandoc --from gfm-raw_html --to plain --output $@ $< |
| 16 |
|
| 17 |
override_dh_clean: |
| 18 |
dh_clean -- $(DOCS) $(CHANGELOGS) |
| 19 |
|
| 20 |
override_dh_auto_build: $(DOCS) |
| 21 |
|
| 22 |
override_dh_installdocs: |
| 23 |
dh_installdocs --all -- $(DOCS) |