suffix = xhtml
version = $(shell git rev-parse --short HEAD)
xsltproc=xsltproc --stringparam stylesheet style.min.css --stringparam version $(version)
svg2png=rsvg-convert -f png
fix_doctype=sed 's/ SYSTEM "about:legacy-compat"//'
to_html=$(fix_doctype) | xsltproc xsl/convert-xhtml-to-html.xsl - | $(fix_doctype) | sed -e 's/
<\/br>/
/g' -e 's/<\/img>//g' -e 's/<\/link>//g' -e 's/<\/meta>//g' -e 's/ $@
%.$(suffix): %.xml %.xsl $(common_depend)
$(V_XSLT) $(xsltproc) --stringparam suffix .$(suffix) $< | $(fix_doctype) > $@
%.$(suffix): %.xml $(common_depend)
$(V_XSLT) $(xsltproc) --stringparam suffix .$(suffix) $< | $(fix_doctype) > $@
%.html: %.xml %.xsl $(common_depend)
$(V_XSLT) $(xsltproc) --stringparam suffix .html $< | $(to_html) > $@
%.html: %.xml $(common_depend)
$(V_XSLT) $(xsltproc) --stringparam suffix .html $< | $(to_html) > $@
style/style.min.css: style/style.css node_modules/.bin/postcss
$(V_CSS) node_modules/.bin/postcss -u postcss-css-variables style/style.css | node_modules/.bin/cleancss > style/style.min.css
clean:
rm -f $(pages_gen) checkmark.png
rm -f $(pages_gen_html)