Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Make `mocha.js` compilable after altering `support/`

Guillermo Rauchb597acc164bf
diff --git a/Makefile b/Makefile
index 49c30016..f8218d6a 100644
--- a/Makefile
+++ b/Makefile
@@ -3,14 +3,15 @@ REPORTER = dot
TM_DEST = ~/Library/Application\ Support/TextMate/Bundles
TM_BUNDLE = JavaScript\ mocha.tmbundle
SRC = $(shell find lib -name "*.js" -type f)
+SUPPORT = $(shell find support -name "*.js" -type f)
all: mocha.js mocha.css
mocha.css: test/browser/style.css
cp -f $< $@
-mocha.js: $(SRC)
- @node support/compile $^
+mocha.js: $(SRC) $(SUPPORT)
+ @node support/compile $(SRC)
@cat support/head.js _mocha.js support/{tail,foot}.js > mocha.js
clean: