Permalink
Browse files

allow for custom locations of coffee/expresso/uglifyjs

use the COFFEE/EXPRESSO/UGLIFYJS environment variables.
  • Loading branch information...
1 parent e34be1e commit 0be88fef1a96426e357cb168970944dedd58737b @jneen committed Jan 2, 2012
Showing with 11 additions and 3 deletions.
  1. +11 −3 Makefile
View
@@ -17,15 +17,23 @@ CLEAN += $(TNETS_MIN)
PACKAGE = tnetstrings-$(VERSION).tgz
CLEAN += $(PACKAGE)
+# binaries
+COFFEE ?= coffee
+EXPRESSO ?= expresso
+UGLIFYJS ?= uglifyjs
+
+.PHONY: all
+all: $(TNETS_LIB)
+
.PHONY: test
test: $(TNETS_LIB)
- expresso test/*.test.coffee
+ $(EXPRESSO) test/*.test.coffee
$(TNETS_LIB): $(TNETS_SRC)
- coffee --bare -o $(LIB_DIR) $(TNETS_SRC)
+ $(COFFEE) --bare -o $(LIB_DIR) $(TNETS_SRC)
$(TNETS_MIN): $(TNETS_LIB)
- uglifyjs $(UGLIFY_OPTS) -o $(TNETS_MIN) $(TNETS_LIB)
+ $(UGLIFYJS) $(UGLIFY_OPTS) -o $(TNETS_MIN) $(TNETS_LIB)
$(PACKAGE): test
npm pack .

0 comments on commit 0be88fe

Please sign in to comment.