]> git.cworth.org Git - obsolete/notmuch-web/blob - node_modules/express/node_modules/qs/support/expresso/Makefile
Install the "express" node module via npm
[obsolete/notmuch-web] / node_modules / express / node_modules / qs / support / expresso / Makefile
1
2 PREFIX ?= /usr/local
3 BIN = bin/expresso
4 JSCOV = deps/jscoverage/node-jscoverage
5 DOCS = docs/index.md
6 HTMLDOCS = $(DOCS:.md=.html)
7
8 test: $(BIN)
9         @./$(BIN) -I lib --growl $(TEST_FLAGS) test/*.test.js
10
11 test-cov:
12         @./$(BIN) -I lib --cov $(TEST_FLAGS) test/*.test.js
13
14 test-serial:
15         @./$(BIN) --serial -I lib $(TEST_FLAGS) test/serial/*.test.js
16
17 install: install-jscov install-expresso
18
19 uninstall:
20         rm -f $(PREFIX)/bin/expresso
21         rm -f $(PREFIX)/bin/node-jscoverage
22
23 install-jscov: $(JSCOV)
24         install $(JSCOV) $(PREFIX)/bin
25
26 install-expresso:
27         install $(BIN) $(PREFIX)/bin
28
29 $(JSCOV):
30         cd deps/jscoverage && ./configure && make && mv jscoverage node-jscoverage
31
32 clean:
33         @cd deps/jscoverage && git clean -fd
34
35 docs: 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
43 docs/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
50 docclean:
51         rm -f docs/*.html
52
53 .PHONY: test test-cov install uninstall install-expresso install-jscov clean docs docclean