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