3 # List of element IDs that we use in the HTML document.
28 SCOUR = @SCOUR@ --enable-id-stripping \
29 --enable-comment-stripping \
30 --remove-descriptive-elements \
31 --no-renderer-workaround \
35 # Optimize our SVG once using XSL, to catch a few things
36 # that "scour" misses.
37 tableau.min.svg: tableau.svg svgclean.xsl
38 @XSLTPROC@ svgclean.xsl $< > $@
40 # Optimize our SVG again, and remove its XML prologue so that it can
41 # be included directly into the HTML document.
42 tableau.min.min.svg: tableau.min.svg
43 $(SCOUR) --protect-ids-list=$$(echo $(PRECIOUS_IDS) | tr ' ' ',') \
47 # Use FontForge to convert the sfd source files to woff2.
49 @FONTFORGE@ -script sfd2woff.ff $<
51 # Base64-encode a woff2 (web open font format 2.0) file. We use this
52 # to embed fonts directly into the CSS that requires them.
56 # Build index.html by substituting the contents of a few (single
57 # line!) files into @PLACEHOLDERS@ within index.html.in. If you put
58 # tildes in tableau.svg this will probably break, so please don't do
60 index.html: index.html.in tableau.min.min.svg CharmBypass-Regular.base64 CharmBypass-Bold.base64
61 sed -e "s~@CBPREGULAR@~$$(cat CharmBypass-Regular.base64)~" \
62 -e "s~@CBPBOLD@~$$(cat CharmBypass-Bold.base64)~" \
63 -e "s~@SVGDATA@~$$(cat tableau.min.min.svg)~" \
66 # If you really want to, we support installing index.html
67 # to (say) /usr/share/charm-bypass/index.html.
68 dist_pkgdata_DATA = index.html
70 # Automake doesn't understand our wacky build process so we have to
71 # tell it which files are produced by running "make"
72 CLEANFILES = $(dist_pkgdata_DATA) \
73 CharmBypass-Regular.base64 \
74 CharmBypass-Bold.base64 \