summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@gmail.com>2017-07-22 09:12:50 +0200
committerBenjamin Franzke <benjaminfranzke@gmail.com>2017-07-22 10:25:41 +0200
commit0f26c526c53de093398d66a421eee7afee901e64 (patch)
tree0b97b165ed245dac8523e1b995b3c142f3c6914d
parentee6e5898b4a55f562093f456088b362a27a396e6 (diff)
downloadmutti-web-0f26c526c53de093398d66a421eee7afee901e64.tar.gz
mutti-web-0f26c526c53de093398d66a421eee7afee901e64.tar.bz2
mutti-web-0f26c526c53de093398d66a421eee7afee901e64.zip
chomp unix line ending from output xhtml/html files
save's one byte
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 9c344ba..cb23a87 100644
--- a/Makefile
+++ b/Makefile
@@ -51,16 +51,16 @@ html: $(pages_gen_html)
$(V_GEN) $(svg2png) $< > $@
%$(suffix): %.xml %.xsl $(common_depend)
- $(V_XSLT) $(xsltproc) --stringparam suffix $(link_suffix) $< | $(fix_doctype) > $@
+ $(V_XSLT) $(xsltproc) --stringparam suffix $(link_suffix) $< | $(fix_doctype) | perl -pe 'chomp if eof' > $@
%$(suffix): %.xml $(common_depend)
- $(V_XSLT) $(xsltproc) --stringparam suffix $(link_suffix) $< | $(fix_doctype) > $@
+ $(V_XSLT) $(xsltproc) --stringparam suffix $(link_suffix) $< | $(fix_doctype) | perl -pe 'chomp if eof' > $@
%.html: %.xml %.xsl $(common_depend)
- $(V_XSLT) $(xsltproc) --stringparam suffix .html $< | $(to_html) | $(html_minify) > $@
+ $(V_XSLT) $(xsltproc) --stringparam suffix .html $< | $(to_html) | $(html_minify) | perl -pe 'chomp if eof' > $@
%.html: %.xml $(common_depend)
- $(V_XSLT) $(xsltproc) --stringparam suffix .html $< | $(to_html) | $(html_minify) > $@
+ $(V_XSLT) $(xsltproc) --stringparam suffix .html $< | $(to_html) | $(html_minify) | perl -pe 'chomp if eof' > $@
style.min.css: style.css font.css
$(V_CSS) node_modules/.bin/postcss -u postcss-import -u postcss-css-variables style.css | node_modules/.bin/cleancss > style.min.css