Skip to content
Myr

Makefile

This file

Path

Makefile

52 lines · 1000 bytes

Last changed by

Added `make site`Tj Holowaychukbefore adoption0d4eaf0

History of this file

Take it

12DOCS = docs/index.md \3	   docs/screencasts.md \4	   docs/executable.md \5	   docs/contrib.md \6	   docs/guide.md \7	   docs/migrate.md \8	   docs/applications.md910MANPAGES =$(DOCS:.md=.1)11HTMLDOCS =$(DOCS:.md=.html)1213test:14	@NODE_ENV=test ./support/expresso/bin/expresso \15		-I lib \16		-I support \17		-I support/connect/lib \18		-I support/haml/lib \19		-I support/jade/lib \20		-I support/ejs/lib \21		$(TESTFLAGS) \22		test/*.test.js2324test-cov:25	@TESTFLAGS=--cov $(MAKE) test2627docs: $(MANPAGES) $(HTMLDOCS)28	@ echo "... generating TOC"29	@./support/toc.js docs/guide.html3031%.1: %.md32	@echo "... $< -> $@"33	@ronn -r --pipe $< > $@3435%.html: %.md36	@echo "... $< -> $@"37	@ronn -5 --pipe --fragment $< \38	  | cat docs/layout/head.html - docs/layout/foot.html \39	  | sed 's/NAME/Express/g' \40	  > $@4142site:43	rm -fr /tmp/docs \44	  && cp -fr docs /tmp/docs \45	  && git checkout gh-pages \46  	&& cp -fr /tmp/docs/* . \47		&& echo "done"4849docclean:50	rm -f docs/*.{1,html}5152.PHONY: site test test-cov docs docclean