3 # Copyright (C) 2011-2018 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 \
19 DOCIMGSVG = img/blue-zones.svg \
24 DOCIMGPDF = img/blue-zones.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 \
42 img/fira-16px-ie11-win81.png \
43 img/Halant-Regular-O-Q.png \
44 img/Halant-Regular-O-Q-unhinted-12px.png \
45 img/Halant-Regular-O-good-Q-badly-hinted-12px.png \
46 img/Halant-Regular-O-good-Q-better-hinted-12px.png \
47 img/Halant-Regular-O-good-Q-well-hinted-12px.png \
48 img/Merriweather-Black-g-21px-comparison.png
50 DOC = ttfautohint.html \
57 jquery-1.11.2.min.js \
60 EXTRA_DIST = c2pandoc.sed \
64 ttfautohint-1.pandoc \
65 ttfautohint-2.pandoc \
66 ttfautohint-3.pandoc \
67 ttfautohint-4.pandoc \
70 longtable-patched.sty \
73 ttfautohint-css.html \
77 nobase_dist_doc_DATA = $(DOC)
81 ttfautohint-2.pandoc: $(top_builddir)/lib/ttfautohint.h
82 $(SED) -f $(srcdir)/c2pandoc.sed < $< > $@
84 ttfautohint-4.pandoc: $(top_srcdir)/lib/taranges.c
85 $(SED) -f $(srcdir)/taranges.sed < $< > $@
87 ttfautohint.txt: $(DOCSRC)
88 $(SHELL) $(srcdir)/strip-comments.sh $^ > $@
92 # suffix rules must always start in column 0
94 $(INKSCAPE) --export-pdf=$@ $<
96 # build snapshot image of ttfautohintGUI:
97 # this needs X11 and ImageMagick's `import' tool
98 # (in the `make-snaphshot.sh' script)
99 img/ttfautohintGUI.png: $(top_srcdir)/frontend/maingui.cpp \
100 $(top_srcdir)/configure.ac
101 cd $(top_builddir)/frontend \
102 && $(MAKE) $(AM_MAKEFLAGS) ttfautohintGUI$(EXEEXT)
103 $(SHELL) $(srcdir)/make-snapshot.sh \
104 $(top_builddir)/frontend/ttfautohintGUI$(EXEEXT) $@
106 ttfautohint.html: ttfautohint.txt $(DOCIMGPNG) $(DOCIMGSVG) \
107 ttfautohint-css.html ttfautohint-js.html \
108 template.html $(top_builddir)/.version
110 --template=$(srcdir)/template.html \
111 --default-image-extension=".svg" \
112 --variable="version:$(VERSION)" \
114 --include-in-header=$(srcdir)/ttfautohint-css.html \
115 --include-in-header=$(srcdir)/ttfautohint-js.html \
119 ttfautohint.pdf: ttfautohint.txt $(DOCIMGPNG) $(DOCIMGPDF) \
120 template.tex $(top_builddir)/.version
121 TEXINPUTS="$(srcdir);" \
123 --latex-engine=$(LATEX) \
124 --template=$(srcdir)/template.tex \
125 --default-image-extension=".pdf" \
126 --variable="version:$(VERSION)" \
134 @echo 1>&2 "warning: can't generate \`$@'"
135 @echo 1>&2 " please install inkscape and reconfigure"
137 img/ttfautohintGUI.png: $(top_srcdir)/frontend/maingui.cpp \
138 $(top_srcdir)/configure.ac
139 @echo 1>&2 "warning: can't generate \`$@'"
140 @echo 1>&2 " please install ImageMagick's \`import' tool and reconfigure"
142 ttfautohint.html: ttfautohint.txt $(DOCIMGPNG) $(DOCIMGSVG) \
143 ttfautohint-css.html template.html $(top_builddir)/.version
144 @echo 1>&2 "warning: can't generate \`$@'"
145 @echo 1>&2 " please install pandoc and reconfigure"
147 ttfautohint.pdf: $ttfautohint.txt $(DOCIMGPNG) $(DOCIMGPDF) \
148 template.tex $(top_builddir)/.version
149 @echo 1>&2 "warning: can't generate \`$@'"
150 @echo 1>&2 " please install pdftex and pandoc, then reconfigure"