Document Cherokee support.
[ttfautohint.git] / doc / Makefile.am
blob6fadf96d5a1251dc2e59dcd85a41f2b3716abfea
1 # Makefile.am
3 # Copyright (C) 2011-2016 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 \
16          ttfautohint-4.pandoc \
17          ../NEWS
19 DOCIMGSVG = img/blue-zones.svg \
20             img/glyph-terms.svg \
21             img/o-and-i.svg \
22             img/segment-edge.svg
24 DOCIMGPDF = img/blue-zones.pdf \
25             img/glyph-terms.pdf \
26             img/o-and-i.pdf \
27             img/segment-edge.pdf
29 DOCIMGPNG = img/ttfautohintGUI.png \
30             img/a-before-hinting.png \
31             img/a-after-hinting.png \
32             img/a-after-autohinting.png \
33             img/afii10108-11px-after-hinting.png \
34             img/afii10108-11px-before-hinting.png \
35             img/afii10108-12px-after-hinting.png \
36             img/afii10108-12px-before-hinting.png \
37             img/composite-no-round-xy-to-grid-option-c.png \
38             img/composite-no-round-xy-to-grid.png \
39             img/composite-round-xy-to-grid.png \
40             img/e-17px-x14.png \
41             img/e-17px-x17.png \
42             img/ff-g-26px.png \
43             img/ff-g-26px-wD.png \
44             img/Halant-Regular-O-Q.png \
45             img/Halant-Regular-O-Q-unhinted-12px.png \
46             img/Halant-Regular-O-good-Q-badly-hinted-12px.png \
47             img/Halant-Regular-O-good-Q-better-hinted-12px.png \
48             img/Halant-Regular-O-good-Q-well-hinted-12px.png
50 DOC = ttfautohint.html \
51       ttfautohint.pdf \
52       ttfautohint.txt \
53       $(DOCIMGPNG) \
54       $(DOCIMGSVG) \
55       $(DOCIMGPDF) \
56       footnote-popup.js \
57       jquery-1.11.2.min.js \
58       toc-unfold.js
60 EXTRA_DIST = c2pandoc.sed \
61              taranges.sed \
62              make-snapshot.sh \
63              strip-comments.sh \
64              ttfautohint-1.pandoc \
65              ttfautohint-2.pandoc \
66              ttfautohint-3.pandoc \
67              ttfautohint-4.pandoc \
68              template.html \
69              template.tex \
70              ttfautohint-css.html \
71              ttfautohint-js.html
73 if WITH_DOC
74   nobase_dist_doc_DATA = $(DOC)
75 endif
78 ttfautohint-2.pandoc: $(top_srcdir)/lib/ttfautohint.h
79         $(SED) -f $(srcdir)/c2pandoc.sed < $< > $@
81 ttfautohint-4.pandoc: $(top_srcdir)/lib/taranges.c
82         $(SED) -f $(srcdir)/taranges.sed < $< > $@
84 ttfautohint.txt: $(DOCSRC)
85         $(SHELL) $(srcdir)/strip-comments.sh $^ > $@
87 if WITH_DOC
89   # suffix rules must always start in column 0
90 .svg.pdf:
91           $(INKSCAPE) --export-pdf=$@ $<
93   # build snapshot image of ttfautohintGUI:
94   # this needs X11 and ImageMagick's `import' tool
95   # (in the `make-snaphshot.sh' script)
96   img/ttfautohintGUI.png: $(top_srcdir)/frontend/maingui.cpp \
97                           $(top_srcdir)/configure.ac
98           cd $(top_builddir)/frontend \
99             && $(MAKE) $(AM_MAKEFLAGS) ttfautohintGUI$(EXEEXT)
100           $(SHELL) $(srcdir)/make-snapshot.sh \
101                      $(top_builddir)/frontend/ttfautohintGUI$(EXEEXT) $@
103   ttfautohint.html: ttfautohint.txt $(DOCIMGPNG) $(DOCIMGSVG) \
104                     ttfautohint-css.html ttfautohint-js.html \
105                     template.html $(top_builddir)/.version
106           $(PANDOC) --smart \
107                     --template=$(srcdir)/template.html \
108                     --default-image-extension=".svg" \
109                     --variable="version:$(VERSION)" \
110                     --toc \
111                     --include-in-header=$(srcdir)/ttfautohint-css.html \
112                     --include-in-header=$(srcdir)/ttfautohint-js.html \
113                     --standalone \
114                     --output=$@ $<
116   ttfautohint.pdf: ttfautohint.txt $(DOCIMGPNG) $(DOCIMGPDF) \
117                    template.tex $(top_builddir)/.version
118           TEXINPUTS="$(srcdir);" \
119           $(PANDOC) --smart \
120                     --latex-engine=$(LATEX) \
121                     --template=$(srcdir)/template.tex \
122                     --default-image-extension=".pdf" \
123                     --variable="version:$(VERSION)" \
124                     --number-sections \
125                     --toc \
126                     --chapters \
127                     --standalone \
128                     --output=$@ $<
129 else
130 .svg.pdf:
131           @echo 1>&2 "warning: can't generate \`$@'"
132           @echo 1>&2 "         please install inkscape and reconfigure"
134   img/ttfautohintGUI.png: $(top_srcdir)/frontend/maingui.cpp \
135                           $(top_srcdir)/configure.ac
136           @echo 1>&2 "warning: can't generate \`$@'"
137           @echo 1>&2 "         please install ImageMagick's \`import' tool and reconfigure"
139   ttfautohint.html: ttfautohint.txt $(DOCIMGPNG) $(DOCIMGSVG) \
140                     ttfautohint-css.html template.html $(top_builddir)/.version
141           @echo 1>&2 "warning: can't generate \`$@'"
142           @echo 1>&2 "         please install pandoc and reconfigure"
144   ttfautohint.pdf: $ttfautohint.txt $(DOCIMGPNG) $(DOCIMGPDF) \
145                    template.tex $(top_builddir)/.version
146           @echo 1>&2 "warning: can't generate \`$@'"
147           @echo 1>&2 "         please install pdftex and pandoc, then reconfigure"
148 endif
150 # end of Makefile.am