Skip to content
Myr

Makefile

This file

Path

Makefile

77 lines · 1.7 KiB

Last changed by

using should / refactored testsTj Holowaychukbefore adoption643879f

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.md \10	   docs/applications.md1112MANPAGES =$(DOCS:.md=.1)13HTMLDOCS =$(DOCS:.md=.html)1415install: install-docs16	@mkdir -p $(PREFIX)/bin17	@mkdir -p $(LIB_PREFIX)18	cp -f bin/express $(PREFIX)/bin/express19	cp -fr lib/express $(LIB_PREFIX)/express2021uninstall: uninstall-docs22	rm -f $(PREFIX)/bin/express23	rm -fr $(LIB_PREFIX)/express2425install-support:26	cd support/connect && $(MAKE) install2728uninstall-support:29	cd support/connect && $(MAKE) uninstall3031install-docs:32	@mkdir -p $(PREFIX)/share/man/man133	cp -f docs/executable.1 $(PREFIX)/share/man/man1/express.13435uninstall-docs:36	rm -f $(PREFIX)/share/man/man1/express.13738test:39	@NODE_ENV=test ./support/expresso/bin/expresso \40		-I lib \41		-I support \42		-I support/connect/lib \43		-I support/haml/lib \44		-I support/jade/lib \45		-I support/ejs/lib \46		$(TESTFLAGS) \47		test/*.test.js4849test-cov:50	@TESTFLAGS=--cov $(MAKE) test5152docs: docs/api.html $(MANPAGES) $(HTMLDOCS)53	@ echo "... generating TOC"54	@./support/toc.js docs/guide.html5556docs/api.html: lib/express/*.js57	dox \58		--private \59		--title Express \60		--desc "High performance web framework for [node](http://nodejs.org)." \61		$(shell find lib/express/* -type f) > $@6263%.1: %.md64	@echo "... $< -> $@"65	@ronn -r --pipe $< > $@6667%.html: %.md68	@echo "... $< -> $@"69	@ronn -5 --pipe --fragment $< \70	  | cat docs/layout/head.html - docs/layout/foot.html \71	  | sed 's/NAME/Express/g' \72	  > $@7374docclean:75	rm -f docs/*.{1,html}7677.PHONY: install uninstall install-docs install-support uninstall-support install-docs uninstall-docs test test-cov docs docclean