Makefile
This file
Path
Makefile
57 lines · 1.2 KiB
Last changed by
Added `make install-support` and `make uninstall-support`Tj Holowaychukbefore adoption774e25d
History of this fileTake it
12PREFIX = /usr/local3LIB_PREFIX = ~/.node_libraries45DOCS = docs/index.md \6 docs/executable.md \7 docs/migrate.md89MANPAGES =$(DOCS:.md=.1)10HTMLDOCS =$(DOCS:.md=.html)1112install:13 @mkdir -p $(PREFIX)/bin14 cp -f bin/express $(PREFIX)/bin/express15 cp -fr lib/express $(LIB_PREFIX)/express1617uninstall:18 rm -f $(PREFIX)/bin/express19 rm -fr $(LIB_PREFIX)/express2021install-support:22 cd support/connect && $(MAKE) install23 cd support/jade && $(MAKE) install2425uninstall-support:26 cd support/connect && $(MAKE) uninstall27 cd support/jade && $(MAKE) uninstall2829test:30 @CONNECT_ENV=test ./support/expresso/bin/expresso \31 -I lib \32 -I support/connect/lib \33 -I support/jade/lib \34 test/*.test.js3536docs: docs/api.html $(MANPAGES) $(HTMLDOCS)3738docs/api.html: lib/express/*.js39 dox --title Express \40 --desc "High performance web framework for [node](http://nodejs.org)." \41 $(shell find lib/express/* -type f) > $@4243%.1: %.md44 @echo "... $< -> $@"45 @ronn -r --pipe $< > $@ &4647%.html: %.md48 @echo "... $< -> $@"49 @ronn -5 --pipe --fragment $< \50 | cat docs/layout/head.html - docs/layout/foot.html \51 | sed 's/NAME/Express/g' \52 > $@ &5354docclean:55 rm -f docs/*.{1,html}5657.PHONY: install uninstall install-docs install-support uninstall-support test docs docclean