PageRenderTime 37ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/js/lib/Socket.IO-node/support/expresso/Makefile

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
Makefile | 53 lines | 38 code | 15 blank | 0 comment | 5 complexity | 2d224528f633ee83403039b66fa5a6f7 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
  1. PREFIX ?= /usr/local
  2. BIN = bin/expresso
  3. JSCOV = deps/jscoverage/node-jscoverage
  4. DOCS = docs/index.md
  5. HTMLDOCS = $(DOCS:.md=.html)
  6. test: $(BIN)
  7. @./$(BIN) -I lib --growl $(TEST_FLAGS) test/*.test.js
  8. test-cov:
  9. @./$(BIN) -I lib --cov $(TEST_FLAGS) test/*.test.js
  10. test-serial:
  11. @./$(BIN) --serial -I lib $(TEST_FLAGS) test/serial/*.test.js
  12. install: install-jscov install-expresso
  13. uninstall:
  14. rm -f $(PREFIX)/bin/expresso
  15. rm -f $(PREFIX)/bin/node-jscoverage
  16. install-jscov: $(JSCOV)
  17. install $(JSCOV) $(PREFIX)/bin
  18. install-expresso:
  19. install $(BIN) $(PREFIX)/bin
  20. $(JSCOV):
  21. cd deps/jscoverage && ./configure && make && mv jscoverage node-jscoverage
  22. clean:
  23. @cd deps/jscoverage && git clean -fd
  24. docs: docs/api.html $(HTMLDOCS)
  25. %.html: %.md
  26. @echo "... $< > $@"
  27. @ronn -5 --pipe --fragment $< \
  28. | cat docs/layout/head.html - docs/layout/foot.html \
  29. > $@
  30. docs/api.html: bin/expresso
  31. dox \
  32. --title "Expresso" \
  33. --ribbon "http://github.com/visionmedia/expresso" \
  34. --desc "Insanely fast TDD framework for [node](http://nodejs.org) featuring code coverage reporting." \
  35. $< > $@
  36. docclean:
  37. rm -f docs/*.html
  38. .PHONY: test test-cov install uninstall install-expresso install-jscov clean docs docclean