source: mod_gnutls/doc/Makefile.am @ dc058b8

debian/masterdebian/stretch-backportsjessie-backportsupstream
Last change on this file since dc058b8 was 6e1d45d, checked in by Thomas Klute <thomas2.klute@…>, 4 years ago

Build documentation through automake

The handwritten Makefile used before had no connection to the automake
system, so documentation could not be built automatically. The user had
to manually call make in doc/. With this change, documentation gets
built, installed, and included in the distribution archive as expected.

Building documentation requires pandoc, which in turn needs pdflatex to
build PDF output. Check for both tools during configuration and
enable/disable output files accordingly.

  • Property mode set to 100644
File size: 394 bytes
Line 
1EXTRA_DIST = mod_gnutls_manual.mdwn
2
3if USE_PANDOC
4html_DATA = mod_gnutls_manual.html
5endif
6# pandoc needs pdflatex for PDF output, so USE_PDFLATEX will only be
7# enabled if USE_PANDOC is, too.
8if USE_PDFLATEX
9pdf_DATA = mod_gnutls_manual.pdf
10endif
11MOSTLYCLEANFILES = $(html_DATA) $(pdf_DATA)
12
13$(html_DATA) $(pdf_DATA): mod_gnutls_manual.mdwn
14        $(PANDOC) --toc --standalone -f markdown -o $@ $<
Note: See TracBrowser for help on using the repository browser.