]> gitweb.michael.orlitzky.com - charm-bypass.git/blob - Makefile.am
Makefile.am: don't strip the "codetext" id
[charm-bypass.git] / Makefile.am
1 EXTRA_DIST = doc src
2
3 # List of element IDs that we use in the HTML document.
4 PRECIOUS_IDS = \
5 bus \
6 city \
7 citycopy \
8 codetext \
9 clouds \
10 cloudscopy \
11 train \
12 tram \
13 trees \
14 treescopy \
15 serviceletter \
16 servicename \
17 sky \
18 ticket \
19 ticketdate \
20 tickettime
21
22 # Optimize our SVG, and remove its XML prologue so that it can be
23 # included directly into the HTML document.
24 tableau.min.svg: tableau.svg
25 @SCOUR@ --protect-ids-list=$$(echo $(PRECIOUS_IDS) | tr ' ' ',') \
26 --enable-id-stripping \
27 --enable-comment-stripping \
28 --remove-descriptive-elements \
29 --no-renderer-workaround \
30 --strip-xml-prolog \
31 --no-line-breaks \
32 --error-on-flowtext \
33 $< > $@
34
35 # Use FontForge to convert the sfd source files to woff2.
36 .sfd.woff2:
37 @FONTFORGE@ -script sfd2woff $<
38
39 # Base64-encode a woff2 (web open font format 2.0) file. We use this
40 # to embed fonts directly into the CSS that requires them.
41 .woff2.base64:
42 @BASE64@ -w0 $< > $@
43
44 # Build index.html by substituting the contents of a few (single
45 # line!) files into @PLACEHOLDERS@ within index.html.in. If you put
46 # tildes in tableau.svg this will probably break, so please don't do
47 # that.
48 index.html: index.html.in tableau.min.svg CharmBypass-Regular.base64 CharmBypass-Bold.base64
49 sed -e "s~@CBPREGULAR@~$$(cat CharmBypass-Regular.base64)~" \
50 -e "s~@CBPBOLD@~$$(cat CharmBypass-Bold.base64)~" \
51 -e "s~@SVGDATA@~$$(cat tableau.min.svg)~" \
52 $< > $@
53
54 # If you really want to, we support installing index.html
55 # to (say) /usr/share/charm-bypass/index.html.
56 dist_pkgdata_DATA = index.html
57
58 # Automake doesn't understand our wacky build process so we have to
59 # tell it which files are produced by running "make"
60 CLEANFILES = $(dist_pkgdata_DATA) \
61 CharmBypass-Regular.base64 \
62 CharmBypass-Bold.base64 \
63 tableau.min.svg