From bab12ff1eb71ea949096721e1217facf5edb898b Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 12 Aug 2012 13:51:01 -0400 Subject: [PATCH] Separate release from stamping via dist --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1410cd6..451a079 100644 --- a/Makefile +++ b/Makefile @@ -24,10 +24,12 @@ FRONTEND_BIN=frontend/armadillo.js # Default target, used to produce the backend and uncompiled frontend. all: backend frontend -# Creates the compiled frontend code and stamps the version information into -# the release. +# Creates the compiled frontend code. release: backend compiled +# Performs a release build and stamps the actual version file. +dist: stamp release + # Compiles the backend server. backend: go build -v . @@ -40,7 +42,7 @@ $(FRONTEND_BIN): $(FRONTEND_SOURCES) # Compiles the frontend code for release. compiled: SOURCES_FLAGS=$(foreach f,$(FRONTEND_SOURCES),--js=$f) -compiled: stamp +compiled: java -jar closure-compiler.jar \ $(SOURCES_FLAGS) \ --js_output_file=$(FRONTEND_BIN) \ -- 2.22.5