Makefile
This file
Path
Makefile
35 lines · 640 bytes
Last changed by
Refactored router. Closes #639Tj Holowaychukbefore adoption80e9ffb
History of this fileTake it
12DOCS = $(shell find docs/*.md)3HTMLDOCS =$(DOCS:.md=.html)4TESTS = $(shell find test/*.test.js)56test:7 @NODE_ENV=test ./node_modules/.bin/expresso \8 -I lib \9 $(TESTFLAGS) \10 $(TESTS)1112test-cov:13 @TESTFLAGS=--cov $(MAKE) test1415docs: $(HTMLDOCS)16 @ echo "... generating TOC"17 @./support/toc.js docs/guide.html1819%.html: %.md20 @echo "... $< -> $@"21 @markdown $< \22 | cat docs/layout/head.html - docs/layout/foot.html \23 > $@2425site:26 rm -fr /tmp/docs \27 && cp -fr docs /tmp/docs \28 && git checkout gh-pages \29 && cp -fr /tmp/docs/* . \30 && echo "done"3132docclean:33 rm -f docs/*.{1,html}3435.PHONY: site test test-cov docs docclean