From 8dc1374e7a1a7027a01fc837f7e02666029f5c8e Mon Sep 17 00:00:00 2001 From: Martin von Gagern Date: Fri, 20 Jan 2017 12:05:03 +0100 Subject: [PATCH] Show compressed sizes correctly On my macOS 10.12 all the sizes used to show as zero. Having them in a single shell invocation should avoid that problem in a portable fashion. --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 73e858c..e52cfdb 100644 --- a/Makefile +++ b/Makefile @@ -90,12 +90,12 @@ build/katex.zip: build/katex zip: build/katex.tar.gz build/katex.zip compress: build/katex.min.js build/katex.min.css - @$(eval JSSIZE!=gzip -c build/katex.min.js | wc -c) - @$(eval CSSSIZE!=gzip -c build/katex.min.css | wc -c) - @$(eval TOTAL!=echo ${JSSIZE}+${CSSSIZE} | bc) - @printf "Minified, gzipped js: %6d\n" "${JSSIZE}" - @printf "Minified, gzipped css: %6d\n" "${CSSSIZE}" - @printf "Total: %6d\n" "${TOTAL}" + @JSSIZE=`gzip -c build/katex.min.js | wc -c`; \ + CSSSIZE=`gzip -c build/katex.min.css | wc -c`; \ + TOTAL=`echo $${JSSIZE}+$${CSSSIZE} | bc`; \ + printf "Minified, gzipped js: %6d\n" "$${JSSIZE}"; \ + printf "Minified, gzipped css: %6d\n" "$${CSSSIZE}"; \ + printf "Total: %6d\n" "$${TOTAL}" serve: $(NIS) $(NODE) server.js