Use fontspec 2.6d.
[ttfautohint.git] / doc / Makefile.am
blob823fbb49168db9dd50b328092814e0e2674d8106
1 # Makefile.am
3 # Copyright (C) 2011-2017 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/fira-16px-ie11-win81.png \
43             img/ff-g-26px.png \
44             img/ff-g-26px-wD.png \
45             img/Halant-Regular-O-Q.png \
46             img/Halant-Regular-O-Q-unhinted-12px.png \
47             img/Halant-Regular-O-good-Q-badly-hinted-12px.png \
48             img/Halant-Regular-O-good-Q-better-hinted-12px.png \
49             img/Halant-Regular-O-good-Q-well-hinted-12px.png
51 DOC = ttfautohint.html \
52       ttfautohint.pdf \
53       ttfautohint.txt \
54       $(DOCIMGPNG) \
55       $(DOCIMGSVG) \
56       $(DOCIMGPDF) \
57       footnote-popup.js \
58       jquery-1.11.2.min.js \
59       toc-unfold.js
61 EXTRA_DIST = c2pandoc.sed \
62              taranges.sed \
63              make-snapshot.sh \
64              strip-comments.sh \
65              ttfautohint-1.pandoc \
66              ttfautohint-2.pandoc \
67              ttfautohint-3.pandoc \
68              ttfautohint-4.pandoc \
69              template.html \
70              template.tex \
71              longtable-patched.sty \
72              fontspec-xetex.sty \
73              ucharclasses-patched.sty \
74              ttfautohint-css.html \
75              ttfautohint-js.html
77 if WITH_DOC
78   nobase_dist_doc_DATA = $(DOC)
79 endif
82 ttfautohint-2.pandoc: $(top_srcdir)/lib/ttfautohint.h
83         $(SED) -f $(srcdir)/c2pandoc.sed < $< > $@
85 ttfautohint-4.pandoc: $(top_srcdir)/lib/taranges.c
86         $(SED) -f $(srcdir)/taranges.sed < $< > $@
88 ttfautohint.txt: $(DOCSRC)
89         $(SHELL) $(srcdir)/strip-comments.sh $^ > $@
91 if WITH_DOC
93   # suffix rules must always start in column 0
94 .svg.pdf:
95           $(INKSCAPE) --export-pdf=$@ $<
97   # build snapshot image of ttfautohintGUI:
98   # this needs X11 and ImageMagick's `import' tool
99   # (in the `make-snaphshot.sh' script)
100   img/ttfautohintGUI.png: $(top_srcdir)/frontend/maingui.cpp \
101                           $(top_srcdir)/configure.ac
102           cd $(top_builddir)/frontend \
103             && $(MAKE) $(AM_MAKEFLAGS) ttfautohintGUI$(EXEEXT)
104           $(SHELL) $(srcdir)/make-snapshot.sh \
105                      $(top_builddir)/frontend/ttfautohintGUI$(EXEEXT) $@
107   ttfautohint.html: ttfautohint.txt $(DOCIMGPNG) $(DOCIMGSVG) \
108                     ttfautohint-css.html ttfautohint-js.html \
109                     template.html $(top_builddir)/.version
110           $(PANDOC) --smart \
111                     --template=$(srcdir)/template.html \
112                     --default-image-extension=".svg" \
113                     --variable="version:$(VERSION)" \
114                     --toc \
115                     --include-in-header=$(srcdir)/ttfautohint-css.html \
116                     --include-in-header=$(srcdir)/ttfautohint-js.html \
117                     --standalone \
118                     --output=$@ $<
120   ttfautohint.pdf: ttfautohint.txt $(DOCIMGPNG) $(DOCIMGPDF) \
121                    template.tex $(top_builddir)/.version
122           TEXINPUTS="$(srcdir);" \
123           $(PANDOC) --smart \
124                     --latex-engine=$(LATEX) \
125                     --template=$(srcdir)/template.tex \
126                     --default-image-extension=".pdf" \
127                     --variable="version:$(VERSION)" \
128                     --number-sections \
129                     --toc \
130                     --chapters \
131                     --standalone \
132                     --output=$@ $<
133 else
134 .svg.pdf:
135           @echo 1>&2 "warning: can't generate \`$@'"
136           @echo 1>&2 "         please install inkscape and reconfigure"
138   img/ttfautohintGUI.png: $(top_srcdir)/frontend/maingui.cpp \
139                           $(top_srcdir)/configure.ac
140           @echo 1>&2 "warning: can't generate \`$@'"
141           @echo 1>&2 "         please install ImageMagick's \`import' tool and reconfigure"
143   ttfautohint.html: ttfautohint.txt $(DOCIMGPNG) $(DOCIMGSVG) \
144                     ttfautohint-css.html template.html $(top_builddir)/.version
145           @echo 1>&2 "warning: can't generate \`$@'"
146           @echo 1>&2 "         please install pandoc and reconfigure"
148   ttfautohint.pdf: $ttfautohint.txt $(DOCIMGPNG) $(DOCIMGPDF) \
149                    template.tex $(top_builddir)/.version
150           @echo 1>&2 "warning: can't generate \`$@'"
151           @echo 1>&2 "         please install pdftex and pandoc, then reconfigure"
152 endif
154 # end of Makefile.am