From 3e824fc6834aad2f6a91f48780b87ef3848fa2b2 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Fri, 28 Sep 2012 15:52:04 +0200 Subject: [PATCH] Avoid running build twice --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b986a0728f..38bc2298c6 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,10 @@ precommit: lint build-all doc test build .PHONY: build build: build/ol.css build/ol.js -build/ol.js build/ol.css: $(PLOVR_JAR) $(SRC) base.json build/ol.json +build/ol.css: build/ol.js + touch $@ + +build/ol.js: $(PLOVR_JAR) $(SRC) base.json build/ol.json java -jar $(PLOVR_JAR) build build/ol.json >$@ @echo $@ "uncompressed:" $$(wc -c <$@) bytes @echo $@ " compressed:" $$(gzip -9 -c <$@ | wc -c) bytes