source: mod_gnutls/doc/Makefile.am @ af9e3a5

asynciodebian/masterproxy-ticket
Last change on this file since af9e3a5 was af9e3a5, checked in by Fiona Klute <fiona.klute@…>, 2 years ago

Build a manual page (requires pandoc)

  • Property mode set to 100644
File size: 662 bytes
Line 
1EXTRA_DIST = mod_gnutls_manual.mdwn
2
3if USE_PANDOC
4html_DATA = mod_gnutls_manual.html
5man3_MANS = mod_gnutls_manual.man
6if USE_PDFLATEX
7# pandoc && pdflatex
8pdf_DATA = mod_gnutls_manual.pdf
9endif
10else
11if USE_MARKDOWN
12# !pandoc && markdown
13html_DATA = mod_gnutls_manual.html
14endif
15endif
16
17MOSTLYCLEANFILES = $(html_DATA) $(pdf_DATA) $(man3_MANS)
18
19if USE_PANDOC
20%.man: %.mdwn
21        $(PANDOC) --standalone --variable section=3 -f markdown -t man -o $@ $<
22
23if USE_PDFLATEX
24%.pdf: %.mdwn
25        $(PANDOC) --toc -f markdown -o $@ $<
26endif
27endif
28
29%.html: %.mdwn
30if USE_PANDOC
31        $(PANDOC) --toc --standalone -f markdown -o $@ $<
32else
33if USE_MARKDOWN
34        $(MARKDOWN) $< > $@
35endif
36endif
Note: See TracBrowser for help on using the repository browser.