Skip to content
Myr

Makefile

This file

Path

Makefile

73 lines · 1.6 KiB

Last changed by

Added --growl flag to `make test`Tj Holowaychukbefore adoption5f59303

History of this file

Take 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-support:24	cd support/connect && $(MAKE) install25	cd support/jade && $(MAKE) install2627uninstall-support:28	cd support/connect && $(MAKE) uninstall29	cd support/jade && $(MAKE) uninstall3031install-docs:32	cp -f docs/executable.1 $(PREFIX)/share/man/man1/express.13334uninstall-docs:35	rm -f $(PREFIX)/share/man/man1/express.13637test:38	@CONNECT_ENV=test ./support/expresso/bin/expresso \39		--growl \40		-I lib \41		-I support/connect/lib \42		-I support/haml/lib \43		-I support/jade/lib \44		-I support/ejs/lib \45		$(TESTFLAGS) \46		test/*.test.js47test-cov:48	@TESTFLAGS=--cov $(MAKE) test4950docs: docs/api.html $(MANPAGES) $(HTMLDOCS)51	@ echo "... generating TOC"52	@./support/toc.js docs/guide.html5354docs/api.html: lib/express/*.js55	dox --title Express \56		--desc "High performance web framework for [node](http://nodejs.org)." \57		$(shell find lib/express/* -type f) > $@5859%.1: %.md60	@echo "... $< -> $@"61	@ronn -r --pipe $< > $@6263%.html: %.md64	@echo "... $< -> $@"65	@ronn -5 --pipe --fragment $< \66	  | cat docs/layout/head.html - docs/layout/foot.html \67	  | sed 's/NAME/Express/g' \68	  > $@6970docclean:71	rm -f docs/*.{1,html}7273.PHONY: install uninstall install-docs install-support uninstall-support install-docs uninstall-docs test test-cov docs docclean