PageRenderTime 72ms CodeModel.GetById 40ms app.highlight 3ms RepoModel.GetById 17ms 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
 1
 2PREFIX ?= /usr/local
 3BIN = bin/expresso
 4JSCOV = deps/jscoverage/node-jscoverage
 5DOCS = docs/index.md
 6HTMLDOCS = $(DOCS:.md=.html)
 7
 8test: $(BIN)
 9	@./$(BIN) -I lib --growl $(TEST_FLAGS) test/*.test.js
10
11test-cov:
12	@./$(BIN) -I lib --cov $(TEST_FLAGS) test/*.test.js
13
14test-serial:
15	@./$(BIN) --serial -I lib $(TEST_FLAGS) test/serial/*.test.js
16
17install: install-jscov install-expresso
18
19uninstall:
20	rm -f $(PREFIX)/bin/expresso
21	rm -f $(PREFIX)/bin/node-jscoverage
22
23install-jscov: $(JSCOV)
24	install $(JSCOV) $(PREFIX)/bin
25
26install-expresso:
27	install $(BIN) $(PREFIX)/bin
28
29$(JSCOV):
30	cd deps/jscoverage && ./configure && make && mv jscoverage node-jscoverage
31
32clean:
33	@cd deps/jscoverage && git clean -fd
34
35docs: docs/api.html $(HTMLDOCS)
36
37%.html: %.md
38	@echo "... $< > $@"
39	@ronn -5 --pipe --fragment $< \
40		| cat docs/layout/head.html - docs/layout/foot.html \
41		> $@
42
43docs/api.html: bin/expresso
44	dox \
45		--title "Expresso" \
46		--ribbon "http://github.com/visionmedia/expresso" \
47		--desc "Insanely fast TDD framework for [node](http://nodejs.org) featuring code coverage reporting." \
48		$< > $@
49
50docclean:
51	rm -f docs/*.html
52
53.PHONY: test test-cov install uninstall install-expresso install-jscov clean docs docclean