]> git.cworth.org Git - obsolete/notmuch-web/blob - node_modules/express/Makefile
Install the "express" node module via npm
[obsolete/notmuch-web] / node_modules / express / Makefile
1
2 DOCS = $(shell find docs/*.md)
3 HTMLDOCS =$(DOCS:.md=.html)
4
5 test:
6         @NODE_ENV=test ./support/expresso/bin/expresso \
7                 -I lib \
8                 -I support \
9                 -I support/connect/lib \
10                 -I support/haml/lib \
11                 -I support/jade/lib \
12                 -I support/ejs/lib \
13                 $(TESTFLAGS) \
14                 test/*.test.js
15
16 test-cov:
17         @TESTFLAGS=--cov $(MAKE) test
18
19 docs: $(HTMLDOCS)
20         @ echo "... generating TOC"
21         @./support/toc.js docs/guide.html
22
23 %.html: %.md
24         @echo "... $< -> $@"
25         @markdown $< \
26           | cat docs/layout/head.html - docs/layout/foot.html \
27           > $@
28
29 site:
30         rm -fr /tmp/docs \
31           && cp -fr docs /tmp/docs \
32           && git checkout gh-pages \
33         && cp -fr /tmp/docs/* . \
34                 && echo "done"
35
36 docclean:
37         rm -f docs/*.{1,html}
38
39 .PHONY: site test test-cov docs docclean