X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=Makefile.am;h=bb9c10c629166144092b6b50034700bc9c49d9be;hb=06c09eb6eba573b23d2422696151e815292ec546;hp=2ddde991e5f20a2012c5f7379f9b7c67e50883fa;hpb=b5208772907735a011fe2c9c5898d5c0e2858225;p=charm-bypass.git diff --git a/Makefile.am b/Makefile.am index 2ddde99..bb9c10c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -32,6 +32,10 @@ SCOUR = @SCOUR@ --enable-id-stripping \ --no-line-breaks \ --error-on-flowtext +# Optimize the favicon just like we do the tableau. +favicon.min.svg: favicon.svg + $(SCOUR) $< > $@ + # Optimize our SVG once using XSL, to catch a few things # that "scour" misses. tableau.min.svg: tableau.svg svgclean.xsl @@ -53,13 +57,19 @@ tableau.min.min.svg: tableau.min.svg .woff2.base64: @BASE64@ -w0 $< > $@ +# Same with the favicon SVG. +.svg.base64: + @BASE64@ -w0 $< > $@ + # Build index.html by substituting the contents of a few (single # line!) files into @PLACEHOLDERS@ within index.html.in. If you put # tildes in tableau.svg this will probably break, so please don't do # that. -index.html: index.html.in tableau.min.min.svg CharmBypass-Regular.base64 CharmBypass-Bold.base64 +index.html: index.html.in tableau.min.min.svg CharmBypass-Regular.base64 CharmBypass-Bold.base64 favicon.base64 + sed -e "s~@CBPREGULAR@~$$(cat CharmBypass-Regular.base64)~" \ -e "s~@CBPBOLD@~$$(cat CharmBypass-Bold.base64)~" \ + -e "s~@FAVICON@~$$(cat favicon.base64)~" \ -e "s~@SVGDATA@~$$(cat tableau.min.min.svg)~" \ $< > $@ @@ -72,5 +82,6 @@ dist_pkgdata_DATA = index.html CLEANFILES = $(dist_pkgdata_DATA) \ CharmBypass-Regular.base64 \ CharmBypass-Bold.base64 \ + favicon.min.svg \ tableau.min.svg \ tableau.min.min.svg