summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4fc5526..ecfe00f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,13 @@
suffix = .xhtml
-xsltproc=xsltproc --stringparam suffix $(suffix)
+xsltproc=xsltproc --stringparam suffix $(suffix) --stringparam stylesheet style.min.css
svg2png=rsvg-convert -f png
pages=$(shell xsltproc xsl/main_filenames.xsl main.xml)
pages_gen=$(pages:%.xml=%$(suffix))
-common_depend=main.xml $(wildcard xsl/*.xsl)
+common_depend=main.xml $(wildcard xsl/*.xsl) Makefile
DEFAULT_VERBOSITY=0
@@ -32,5 +32,8 @@ all: $(pages_gen) checkmark.png
%$(suffix): %.xml $(common_depend)
$(V_XSLT) $(xsltproc) $< > $@
+style/style.min.css: style/style.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