source: mod_gnutls/doc/Makefile.am @ 3493a80

debian/master
Last change on this file since 3493a80 was 3493a80, checked in by Fiona Klute <fiona.klute@…>, 15 months ago

Include version and build date in the manual page

  • Property mode set to 100644
File size: 789 bytes
Line 
1EXTRA_DIST = mod_gnutls_manual.mdwn mod_gnutls_manual.yaml.in
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
19%.yaml: %.yaml.in
20        sed -e s/__MOD_GNUTLS_VERSION__/@MOD_GNUTLS_VERSION@/ \
21                -e s/__DATE__/$$(date -I)/ < $< > $@
22
23if USE_PANDOC
24%.man: %.mdwn %.yaml
25        $(PANDOC) --standalone -f markdown -t man -o $@ $^
26
27if USE_PDFLATEX
28%.pdf: %.mdwn
29        $(PANDOC) --toc -f markdown -o $@ $<
30endif
31endif
32
33%.html: %.mdwn
34if USE_PANDOC
35        $(PANDOC) --toc --standalone -f markdown -o $@ $<
36else
37if USE_MARKDOWN
38        $(MARKDOWN) $< > $@
39endif
40endif
Note: See TracBrowser for help on using the repository browser.