Makefile
This file
Path
Makefile
64 lines · 1.4 KiB
Last changed by
Removed `make install-support`Tj Holowaychukbefore adoptionbdfd813
History of this fileTake it
12PREFIX = /usr/local3LIB_PREFIX = ~/.node_libraries45DOCS = docs/index.md \6 docs/executable.md \7 docs/contrib.md \8 docs/guide.md \9 docs/migrate.md1011MANPAGES =$(DOCS:.md=.1)12HTMLDOCS =$(DOCS:.md=.html)1314install: install-docs15 @mkdir -p $(PREFIX)/bin16 cp -f bin/express $(PREFIX)/bin/express17 cp -fr lib/express $(LIB_PREFIX)/express1819uninstall: uninstall-docs20 rm -f $(PREFIX)/bin/express21 rm -fr $(LIB_PREFIX)/express2223install-docs:24 cp -f docs/executable.1 $(PREFIX)/share/man/man1/express.12526uninstall-docs:27 rm -f $(PREFIX)/share/man/man1/express.12829test:30 @CONNECT_ENV=test ./support/expresso/bin/expresso \31 -I lib \32 -I support/connect/lib \33 -I support/haml/lib \34 -I support/jade/lib \35 -I support/ejs/lib \36 $(TESTFLAGS) \37 test/*.test.js38test-cov:39 @TESTFLAGS=--cov $(MAKE) test4041docs: docs/api.html $(MANPAGES) $(HTMLDOCS)42 @ echo "... generating TOC"43 @./support/toc.js docs/guide.html4445docs/api.html: lib/express/*.js46 dox --title Express \47 --desc "High performance web framework for [node](http://nodejs.org)." \48 $(shell find lib/express/* -type f) > $@4950%.1: %.md51 @echo "... $< -> $@"52 @ronn -r --pipe $< > $@5354%.html: %.md55 @echo "... $< -> $@"56 @ronn -5 --pipe --fragment $< \57 | cat docs/layout/head.html - docs/layout/foot.html \58 | sed 's/NAME/Express/g' \59 > $@6061docclean:62 rm -f docs/*.{1,html}6364.PHONY: install uninstall install-docs install-docs uninstall-docs test test-cov docs docclean