Permalink
Switch branches/tags
upstream/1.0.0rc4 hudson-express-58 hudson-express-57 hudson-express-56 hudson-express-55 hudson-express-55-SUCCESS hudson-express-54 hudson-express-54-SUCCESS hudson-express-53 hudson-express-53-SUCCESS hudson-express-52 hudson-express-52-SUCCESS hudson-express-51 hudson-express-51-SUCCESS hudson-express-50 hudson-express-50-SUCCESS hudson-express-49 hudson-express-49-SUCCESS hudson-express-48 hudson-express-46 hudson-express-45 hudson-express-45-SUCCESS hudson-express-44 hudson-express-43 hudson-express-43-SUCCESS hudson-express-14 hudson-express-13 hudson-express-13-SUCCESS hudson-express-12 hudson-express-12-SUCCESS hudson-express-11 hudson-express-11-SUCCESS hudson-express-10 hudson-express-10-SUCCESS hudson-express-9 hudson-express-9-SUCCESS hudson-express-8 hudson-express-8-SUCCESS hudson-express-7 hudson-express-7-SUCCESS hudson-express-6 hudson-express-6-SUCCESS hudson-express-5 hudson-express-5-SUCCESS hudson-express-4 hudson-express-4-SUCCESS hudson-express-2 hudson-express-2-SUCCESS hudson-express-1 debian/1.0.0rc4-0sg58 debian/1.0.0rc4-0sg56 debian/1.0.0rc4-0sg55 debian/1.0.0rc4-0sg54 debian/1.0.0rc4-0sg53 debian/1.0.0rc4-0sg52 debian/1.0.0rc4-0sg51 debian/1.0.0rc4-0sg50 debian/1.0.0rc4-0sg49 debian/1.0.0rc4-0sg48 debian/1.0.0rc4-0sg46 debian/1.0.0rc4-0sg45 debian/1.0.0rc4-0sg44 debian/1.0.0rc4-0sg43 debian/1.0.0rc4-0sg14 debian/1.0.0rc4-0sg13 debian/1.0.0rc4-0sg12 debian/1.0.0rc4-0sg11 debian/1.0.0rc4-0sg10 debian/1.0.0rc4-0sg9 debian/1.0.0rc4-0sg8 debian/1.0.0rc4-0sg7 debian/1.0.0rc4-0sg6 debian/1.0.0rc4-0sg5 debian/1.0.0rc4-0sg4 debian/1.0.0rc4-0sg2 1.0.0rc4 1.0.0rc3 1.0.0rc2 1.0.0rc 1.0.0beta2 1.0.0beta 0.14.1 0.14.0 0.13.0 0.12.0 0.11.0 0.10.1 0.10.0 0.9.0 0.8.0 0.7.6 0.7.5 0.7.4 0.7.3 0.7.2 0.7.1 0.7.0 0.6.0 0.5.0 0.4.0
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
77 lines (60 sloc) 1.71 KB
PREFIX = /usr/local
LIB_PREFIX = ~/.node_libraries
DOCS = docs/index.md \
docs/executable.md \
docs/contrib.md \
docs/guide.md \
docs/migrate.md
MANPAGES =$(DOCS:.md=.1)
HTMLDOCS =$(DOCS:.md=.html)
install: install-docs
@mkdir -p $(PREFIX)/bin
@mkdir -p $(LIB_PREFIX)
cp -f bin/express $(PREFIX)/bin/express
cp -fr lib/express $(LIB_PREFIX)/express
uninstall: uninstall-docs
rm -f $(PREFIX)/bin/express
rm -fr $(LIB_PREFIX)/express
install-support:
cd support/connect && $(MAKE) install
cd support/jade && $(MAKE) install
uninstall-support:
cd support/connect && $(MAKE) uninstall
cd support/jade && $(MAKE) uninstall
install-docs:
@mkdir -p $(PREFIX)/share/man/man1
cp -f docs/executable.1 $(PREFIX)/share/man/man1/express.1
uninstall-docs:
rm -f $(PREFIX)/share/man/man1/express.1
test:
@NODE_ENV=test ./support/expresso/bin/expresso \
-I lib \
-I support/connect/lib \
-I support/haml/lib \
-I support/jade/lib \
-I support/ejs/lib \
$(TESTFLAGS) \
test/*.test.js
test-cov:
@TESTFLAGS=--cov $(MAKE) test
docs: docs/api.html $(MANPAGES) $(HTMLDOCS)
@ echo "... generating TOC"
@./support/toc.js docs/guide.html
docs/api.html: lib/express/*.js
dox \
--private \
--title Express \
--desc "High performance web framework for [node](http://nodejs.org)." \
$(shell find lib/express/* -type f) > $@
%.1: %.md
@echo "... $< -> $@"
@ronn -r --pipe $< > $@
%.html: %.md
@echo "... $< -> $@"
@ronn -5 --pipe --fragment $< \
| cat docs/layout/head.html - docs/layout/foot.html \
| sed 's/NAME/Express/g' \
> $@
docclean:
rm -f docs/*.{1,html}
.PHONY: install uninstall install-docs install-support uninstall-support install-docs uninstall-docs test test-cov docs docclean