[doc] Add CSS for HTML output.
[ttfautohint.git] / doc / Makefile.am
blobed26f34d504c61909b33937c447aa2c269acff33
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                          $(DOCIMAGES) \
28                          $(DOCGEN)
29 endif
31 ttfautohint-2.pandoc: $(top_srcdir)/lib/ttfautohint.h
32         $(SED) -f $(srcdir)/c2pandoc.sed < $< > $@
34 ttfautohint.html: $(DOCSRC) $(DOCIMAGES) ttfautohint.css
35         $(PANDOC) --toc -H ttfautohint.css -S -s -o $@ $(DOCSRC)
37 # XXX write template
38 ttfautohint.pdf: $(DOCSRC) $(DOCIMAGES)
39         $(PANDOC) --latex-engine=$(PDFLATEX) --toc -S -s -o $@ $(DOCSRC)
41 # end of Makefile.am