[doc] Fix installation rule.
[ttfautohint.git] / doc / Makefile.am
blobe74f03b8aec49f176c183cc85a0d96317daa1708
1 # Makefile.am
3 # Copyright (C) 2011-2012 by Werner Lemberg.
5 # This file is part of the ttfautohint library, and may only be used,
6 # modified, and distributed under the terms given in `COPYING'.  By
7 # continuing to use, modify, or distribute this file you indicate that you
8 # have read `COPYING' and understand and accept it fully.
10 # The file `COPYING' mentioned in the previous paragraph is distributed
11 # with the ttfautohint library.
13 DOCSRC = ttfautohint-1.pandoc \
14          ttfautohint-2.pandoc \
15          ttfautohint-3.pandoc
17 DOCIMAGES = img/ttfautohintGUI.png
19 DOCGEN = ttfautohint.html
20 if MAKE_PDF
21   DOCGEN += ttfautohint.pdf
22 endif
24 if WITH_DOC
25   nobase_dist_doc_DATA = $(DOCSRC) \
26                          ttfautohint.css \
27                          template.html \
28                          $(DOCIMAGES) \
29                          $(DOCGEN)
30 endif
32 ttfautohint-2.pandoc: $(top_srcdir)/lib/ttfautohint.h
33         $(SED) -f $(srcdir)/c2pandoc.sed < $< > $@
35 ttfautohint.html: $(DOCSRC) $(DOCIMAGES) ttfautohint.css template.html
36         $(PANDOC) --template=template.html \
37                   --toc \
38                   --include-in-header=ttfautohint.css \
39                   --smart \
40                   --standalone \
41                   --output=$@ \
42                   $(DOCSRC)
44 # XXX write template
45 ttfautohint.pdf: $(DOCSRC) $(DOCIMAGES)
46         $(PANDOC) --latex-engine=$(PDFLATEX) --toc -S -s -o $@ $(DOCSRC)
48 # end of Makefile.am