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 \
17 DOCIMAGES = img/ttfautohintGUI.png
19 DOCGEN = ttfautohint.html \
24 nobase_dist_doc_DATA = $(DOCSRC) \
31 ttfautohint-2.pandoc: $(top_srcdir)/lib/ttfautohint.h
32 $(SED) -f $(srcdir)/c2pandoc.sed < $< > $@
35 # build snapshot image of ttfautohintGUI:
36 # this needs X11 and ImageMagick's `import' tool
37 # (in the `make-snaphshot.sh' script)
38 img/ttfautohintGUI.png: $(top_srcdir)/frontend/maingui.cpp \
39 $(top_srcdir)/configure.ac
40 cd $(top_builddir)/frontend \
41 && $(MAKE) $(AM_MAKEFLAGS) ttfautohintGUI$(EXEEXT)
42 -mkdir img 2> /dev/null
43 $(SHELL) $(srcdir)/make-snapshot.sh \
44 $(top_builddir)/frontend/ttfautohintGUI$(EXEEXT) $@
46 ttfautohint.html: $(DOCSRC) $(DOCIMAGES) \
47 ttfautohint.css template.html $(top_srcdir)/.version
48 $(PANDOC) --template=template.html \
49 --variable="version:$(VERSION)" \
51 --include-in-header=ttfautohint.css \
58 ttfautohint.pdf: $(DOCSRC) $(DOCIMAGES) \
59 template.tex $(top_srcdir)/.version
60 $(PANDOC) --latex-engine=$(PDFLATEX) \
61 --template=template.tex \
62 --variable="version:$(VERSION)" \
70 img/ttfautohintGUI.png: $(top_srcdir)/frontend/maingui.cpp \
71 $(top_srcdir)/configure.ac
72 @echo 1>&2 "warning: can't generate \`$@'"
73 @echo 1>&2 " please install ImageMagick's \`import' tool and reconfigure"
75 ttfautohint.html: $(DOCSRC) $(DOCIMAGES) \
76 ttfautohint.css template.html $(top_srcdir)/.version
77 @echo 1>&2 "warning: can't generate \`$@'"
78 @echo 1>&2 " pleasae install pandoc and reconfigure"
80 ttfautohint.pdf: $(DOCSRC) $(DOCIMAGES) $(top_srcdir)/.version
81 @echo 1>&2 "warning: can't generate \`$@'"
82 @echo 1>&2 " please install pdftex and pandoc, then reconfigure"