Skip to content
Myr

Makefile

This file

Path

Makefile

58 lines · 1.3 KiB

Last changed by

Added haml testTj Holowaychukbefore adoptiondc5caeb

History of this file

Take 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/haml/lib \34		-I support/jade/lib \35		test/*.test.js3637docs: docs/api.html $(MANPAGES) $(HTMLDOCS)3839docs/api.html: lib/express/*.js40	dox --title Express \41		--desc "High performance web framework for [node](http://nodejs.org)." \42		$(shell find lib/express/* -type f) > $@4344%.1: %.md45	@echo "... $< -> $@"46	@ronn -r --pipe $< > $@ &4748%.html: %.md49	@echo "... $< -> $@"50	@ronn -5 --pipe --fragment $< \51	  | cat docs/layout/head.html - docs/layout/foot.html \52	  | sed 's/NAME/Express/g' \53	  > $@ &5455docclean:56	rm -f docs/*.{1,html}5758.PHONY: install uninstall install-docs install-support uninstall-support test docs docclean