Skip to content
Myr

Makefile

This file

Path

Makefile

39 lines · 725 bytes

Last changed by

fixed docs due to markdown-js not supporting htmlTj Holowaychukbefore adoptiona75e60a

History of this file

Take it

12DOCS = $(shell find docs/*.md)3HTMLDOCS =$(DOCS:.md=.html)45test: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.js1516test-cov:17	@TESTFLAGS=--cov $(MAKE) test1819docs: $(HTMLDOCS)20	@ echo "... generating TOC"21	@./support/toc.js docs/guide.html2223%.html: %.md24	@echo "... $< -> $@"25	@markdown $< \26	  | cat docs/layout/head.html - docs/layout/foot.html \27	  > $@2829site:30	rm -fr /tmp/docs \31	  && cp -fr docs /tmp/docs \32	  && git checkout gh-pages \33  	&& cp -fr /tmp/docs/* . \34		&& echo "done"3536docclean:37	rm -f docs/*.{1,html}3839.PHONY: site test test-cov docs docclean