3 # Copyright (C) 2011-2013 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 \
17 DOCIMGSVG = img/blue-zones.svg \
22 DOCIMGPDF = img/blue-zones.pdf \
27 DOCIMGPNG = img/ttfautohintGUI.png \
28 img/a-before-hinting.png \
29 img/a-after-hinting.png \
30 img/a-after-autohinting.png \
31 img/afii10108-11px-after-hinting.png \
32 img/afii10108-11px-before-hinting.png \
33 img/afii10108-12px-after-hinting.png \
34 img/afii10108-12px-before-hinting.png \
40 DOC = ttfautohint.html \
47 EXTRA_DIST = c2pandoc.sed \
50 ttfautohint-1.pandoc \
51 ttfautohint-2.pandoc \
52 ttfautohint-3.pandoc \
58 nobase_dist_doc_DATA = $(DOC)
62 ttfautohint-2.pandoc: $(top_srcdir)/lib/ttfautohint.h
63 $(SED) -f $(srcdir)/c2pandoc.sed < $< > $@
65 ttfautohint.txt: $(DOCSRC)
66 $(SHELL) $(srcdir)/strip-comments.sh $^ > $@
70 # suffix rules must always start in column 0
72 $(INKSCAPE) --export-pdf=$@ $<
74 # build snapshot image of ttfautohintGUI:
75 # this needs X11 and ImageMagick's `import' tool
76 # (in the `make-snaphshot.sh' script)
77 img/ttfautohintGUI.png: $(top_srcdir)/frontend/maingui.cpp \
78 $(top_srcdir)/configure.ac
79 cd $(top_builddir)/frontend \
80 && $(MAKE) $(AM_MAKEFLAGS) ttfautohintGUI$(EXEEXT)
81 -mkdir img 2> /dev/null
82 $(SHELL) $(srcdir)/make-snapshot.sh \
83 $(top_builddir)/frontend/ttfautohintGUI$(EXEEXT) $@
85 ttfautohint.html: ttfautohint.txt $(DOCIMGPNG) $(DOCIMGSVG) \
86 ttfautohint-css.html template.html $(top_srcdir)/.version
88 --template=$(srcdir)/template.html \
89 --default-image-extension=".svg" \
90 --variable="version:$(VERSION)" \
92 --include-in-header=$(srcdir)/ttfautohint-css.html \
96 ttfautohint.pdf: ttfautohint.txt $(DOCIMGPNG) $(DOCIMGPDF) \
97 template.tex $(top_srcdir)/.version
98 TEXINPUTS="$(srcdir);" \
100 --latex-engine=$(PDFLATEX) \
101 --template=$(srcdir)/template.tex \
102 --default-image-extension=".pdf" \
103 --variable="version:$(VERSION)" \
111 @echo 1>&2 "warning: can't generate \`$@'"
112 @echo 1>&2 " please install inkscape and reconfigure"
114 img/ttfautohintGUI.png: $(top_srcdir)/frontend/maingui.cpp \
115 $(top_srcdir)/configure.ac
116 @echo 1>&2 "warning: can't generate \`$@'"
117 @echo 1>&2 " please install ImageMagick's \`import' tool and reconfigure"
119 ttfautohint.html: ttfautohint.txt $(DOCIMGPNG) $(DOCIMGSVG) \
120 ttfautohint-css.html template.html $(top_srcdir)/.version
121 @echo 1>&2 "warning: can't generate \`$@'"
122 @echo 1>&2 " pleasae install pandoc and reconfigure"
124 ttfautohint.pdf: $ttfautohint.txt $(DOCIMGPNG) $(DOCIMGPDF) \
125 template.tex $(top_srcdir)/.version
126 @echo 1>&2 "warning: can't generate \`$@'"
127 @echo 1>&2 " please install pdftex and pandoc, then reconfigure"