diff options
author | Cliff Brake <cbrake@bec-systems.com> | 2012-08-17 13:43:14 -0400 |
---|---|---|
committer | Cliff Brake <cbrake@bec-systems.com> | 2012-08-17 13:43:14 -0400 |
commit | a94e78479793722bc97b8771158d1acee3f55413 (patch) | |
tree | bf8f79959febb472513b299df99774de524f5fd1 /tools/node_modules/expresso/Makefile | |
parent | c11f922b0bfa023a4cf49f26e55aec6a1413344b (diff) | |
download | openembedded-admin-a94e78479793722bc97b8771158d1acee3f55413.tar.gz |
add node modules to git
This is now the best practice for deployed apps
Diffstat (limited to 'tools/node_modules/expresso/Makefile')
-rw-r--r-- | tools/node_modules/expresso/Makefile | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/tools/node_modules/expresso/Makefile b/tools/node_modules/expresso/Makefile new file mode 100644 index 0000000..1687df4 --- /dev/null +++ b/tools/node_modules/expresso/Makefile @@ -0,0 +1,53 @@ + +PREFIX ?= /usr/local +BIN = bin/expresso +JSCOV = deps/jscoverage/node-jscoverage +DOCS = docs/index.md +HTMLDOCS = $(DOCS:.md=.html) + +test: $(BIN) + @./$(BIN) --growl $(TEST_FLAGS) + +test-cov: + @./$(BIN) -I lib --cov $(TEST_FLAGS) + +test-serial: + @./$(BIN) --serial $(TEST_FLAGS) test/serial/*.test.js + +install: install-jscov install-expresso + +uninstall: + rm -f $(PREFIX)/bin/expresso + rm -f $(PREFIX)/bin/node-jscoverage + +install-jscov: $(JSCOV) + install $(JSCOV) $(PREFIX)/bin + +install-expresso: + install $(BIN) $(PREFIX)/bin + +$(JSCOV): + cd deps/jscoverage && ./configure && make && mv jscoverage node-jscoverage + +clean: + @cd deps/jscoverage && git clean -fd + +docs: docs/api.html $(HTMLDOCS) + +%.html: %.md + @echo "... $< > $@" + @ronn --html $< \ + | cat docs/layout/head.html - docs/layout/foot.html \ + > $@ + +docs/api.html: bin/expresso + dox \ + --title "Expresso" \ + --ribbon "http://github.com/visionmedia/expresso" \ + --desc "Insanely fast TDD framework for [node](http://nodejs.org) featuring code coverage reporting." \ + $< > $@ + +docclean: + rm -f docs/*.html + +.PHONY: test test-cov install uninstall install-expresso install-jscov clean docs docclean
\ No newline at end of file |