File: Makefile.am

package info (click to toggle)
ttfautohint 1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,504 kB
  • ctags: 4,347
  • sloc: ansic: 38,386; sh: 5,749; cpp: 4,131; perl: 340; makefile: 309; sed: 39
file content (151 lines) | stat: -rw-r--r-- 5,266 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# Makefile.am

# Copyright (C) 2011-2016 by Werner Lemberg.
#
# This file is part of the ttfautohint library, and may only be used,
# modified, and distributed under the terms given in `COPYING'.  By
# continuing to use, modify, or distribute this file you indicate that you
# have read `COPYING' and understand and accept it fully.
#
# The file `COPYING' mentioned in the previous paragraph is distributed
# with the ttfautohint library.

DOCSRC = ttfautohint-1.pandoc \
         ttfautohint-2.pandoc \
         ttfautohint-3.pandoc \
         ttfautohint-4.pandoc \
         ../NEWS

DOCIMGSVG = img/blue-zones.svg \
            img/glyph-terms.svg \
            img/o-and-i.svg \
            img/segment-edge.svg

DOCIMGPDF = img/blue-zones.pdf \
            img/glyph-terms.pdf \
            img/o-and-i.pdf \
            img/segment-edge.pdf

DOCIMGPNG = img/ttfautohintGUI.png \
            img/a-before-hinting.png \
            img/a-after-hinting.png \
            img/a-after-autohinting.png \
            img/afii10108-11px-after-hinting.png \
            img/afii10108-11px-before-hinting.png \
            img/afii10108-12px-after-hinting.png \
            img/afii10108-12px-before-hinting.png \
            img/composite-no-round-xy-to-grid-option-c.png \
            img/composite-no-round-xy-to-grid.png \
            img/composite-round-xy-to-grid.png \
            img/e-17px-x14.png \
            img/e-17px-x17.png \
            img/fira-16px-ie11-win81.png \
            img/ff-g-26px.png \
            img/ff-g-26px-wD.png \
            img/Halant-Regular-O-Q.png \
            img/Halant-Regular-O-Q-unhinted-12px.png \
            img/Halant-Regular-O-good-Q-badly-hinted-12px.png \
            img/Halant-Regular-O-good-Q-better-hinted-12px.png \
            img/Halant-Regular-O-good-Q-well-hinted-12px.png

DOC = ttfautohint.html \
      ttfautohint.pdf \
      ttfautohint.txt \
      $(DOCIMGPNG) \
      $(DOCIMGSVG) \
      $(DOCIMGPDF) \
      footnote-popup.js \
      jquery-1.11.2.min.js \
      toc-unfold.js

EXTRA_DIST = c2pandoc.sed \
             taranges.sed \
             make-snapshot.sh \
             strip-comments.sh \
             ttfautohint-1.pandoc \
             ttfautohint-2.pandoc \
             ttfautohint-3.pandoc \
             ttfautohint-4.pandoc \
             template.html \
             template.tex \
             ttfautohint-css.html \
             ttfautohint-js.html

if WITH_DOC
  nobase_dist_doc_DATA = $(DOC)
endif


ttfautohint-2.pandoc: $(top_srcdir)/lib/ttfautohint.h
	$(SED) -f $(srcdir)/c2pandoc.sed < $< > $@

ttfautohint-4.pandoc: $(top_srcdir)/lib/taranges.c
	$(SED) -f $(srcdir)/taranges.sed < $< > $@

ttfautohint.txt: $(DOCSRC)
	$(SHELL) $(srcdir)/strip-comments.sh $^ > $@

if WITH_DOC

  # suffix rules must always start in column 0
.svg.pdf:
	  $(INKSCAPE) --export-pdf=$@ $<

  # build snapshot image of ttfautohintGUI:
  # this needs X11 and ImageMagick's `import' tool
  # (in the `make-snaphshot.sh' script)
  img/ttfautohintGUI.png: $(top_srcdir)/frontend/maingui.cpp \
                          $(top_srcdir)/configure.ac
	  cd $(top_builddir)/frontend \
	    && $(MAKE) $(AM_MAKEFLAGS) ttfautohintGUI$(EXEEXT)
	  $(SHELL) $(srcdir)/make-snapshot.sh \
	             $(top_builddir)/frontend/ttfautohintGUI$(EXEEXT) $@

  ttfautohint.html: ttfautohint.txt $(DOCIMGPNG) $(DOCIMGSVG) \
                    ttfautohint-css.html ttfautohint-js.html \
                    template.html $(top_builddir)/.version
	  $(PANDOC) --smart \
	            --template=$(srcdir)/template.html \
	            --default-image-extension=".svg" \
	            --variable="version:$(VERSION)" \
	            --toc \
	            --include-in-header=$(srcdir)/ttfautohint-css.html \
	            --include-in-header=$(srcdir)/ttfautohint-js.html \
	            --standalone \
	            --output=$@ $<

  ttfautohint.pdf: ttfautohint.txt $(DOCIMGPNG) $(DOCIMGPDF) \
                   template.tex $(top_builddir)/.version
	  TEXINPUTS="$(srcdir);" \
	  $(PANDOC) --smart \
	            --latex-engine=$(LATEX) \
	            --template=$(srcdir)/template.tex \
	            --default-image-extension=".pdf" \
	            --variable="version:$(VERSION)" \
	            --number-sections \
	            --toc \
	            --chapters \
	            --standalone \
	            --output=$@ $<
else
.svg.pdf:
	  @echo 1>&2 "warning: can't generate \`$@'"
	  @echo 1>&2 "         please install inkscape and reconfigure"

  img/ttfautohintGUI.png: $(top_srcdir)/frontend/maingui.cpp \
                          $(top_srcdir)/configure.ac
	  @echo 1>&2 "warning: can't generate \`$@'"
	  @echo 1>&2 "         please install ImageMagick's \`import' tool and reconfigure"

  ttfautohint.html: ttfautohint.txt $(DOCIMGPNG) $(DOCIMGSVG) \
                    ttfautohint-css.html template.html $(top_builddir)/.version
	  @echo 1>&2 "warning: can't generate \`$@'"
	  @echo 1>&2 "         please install pandoc and reconfigure"

  ttfautohint.pdf: $ttfautohint.txt $(DOCIMGPNG) $(DOCIMGPDF) \
                   template.tex $(top_builddir)/.version
	  @echo 1>&2 "warning: can't generate \`$@'"
	  @echo 1>&2 "         please install pdftex and pandoc, then reconfigure"
endif

# end of Makefile.am