Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 61 lines (47 sloc) 1.357 kb
35e2f6b @tj NODE makefile
tj authored
1
6770e85 @tj Added `make install
tj authored
2 PREFIX = /usr/local
3 LIB_PREFIX = ~/.node_libraries
4
87bb27c @tj Added migrate doc files
tj authored
5 DOCS = docs/index.md \
21eeb09 @tj Executable docs
tj authored
6 docs/executable.md \
87bb27c @tj Added migrate doc files
tj authored
7 docs/migrate.md
8
939cf45 @tj Added `make docs`
tj authored
9 MANPAGES =$(DOCS:.md=.1)
10 HTMLDOCS =$(DOCS:.md=.html)
11
6770e85 @tj Added `make install
tj authored
12 install:
13 @mkdir -p $(PREFIX)/bin
14 cp -f bin/express $(PREFIX)/bin/express
15 cp -fr lib/express $(LIB_PREFIX)/express
16
17 uninstall:
18 rm -f $(PREFIX)/bin/express
19 rm -fr $(LIB_PREFIX)/express
20
774e25d @tj Added `make install-support` and `make uninstall-support`
tj authored
21 install-support:
22 cd support/connect && $(MAKE) install
23 cd support/jade && $(MAKE) install
24
25 uninstall-support:
26 cd support/connect && $(MAKE) uninstall
27 cd support/jade && $(MAKE) uninstall
28
2932bf5 @tj make test / make init distinction
tj authored
29 test:
25e7967 @tj Added Connect submodule
tj authored
30 @CONNECT_ENV=test ./support/expresso/bin/expresso \
31 -I lib \
32 -I support/connect/lib \
dc5caeb @tj Added haml test
tj authored
33 -I support/haml/lib \
0ffbc6e @tj Added jade submodule
tj authored
34 -I support/jade/lib \
0515e14 @tj Added `make test-cov`
tj authored
35 $(TESTFLAGS) \
25e7967 @tj Added Connect submodule
tj authored
36 test/*.test.js
0515e14 @tj Added `make test-cov`
tj authored
37 test-cov:
38 @TESTFLAGS=--cov $(MAKE) test
3fd7e3b @tj Added `make prof` so that we can generate v8.log and analyse the output
tj authored
39
939cf45 @tj Added `make docs`
tj authored
40 docs: docs/api.html $(MANPAGES) $(HTMLDOCS)
41
bafa300 @tj Generated docs
tj authored
42 docs/api.html: lib/express/*.js
939cf45 @tj Added `make docs`
tj authored
43 dox --title Express \
44 --desc "High performance web framework for [node](http://nodejs.org)." \
45 $(shell find lib/express/* -type f) > $@
46
47 %.1: %.md
48 @echo "... $< -> $@"
29641ae @tj Started new docs
tj authored
49 @ronn -r --pipe $< > $@ &
939cf45 @tj Added `make docs`
tj authored
50
51 %.html: %.md
52 @echo "... $< -> $@"
53 @ronn -5 --pipe --fragment $< \
29641ae @tj Started new docs
tj authored
54 | cat docs/layout/head.html - docs/layout/foot.html \
55 | sed 's/NAME/Express/g' \
56 > $@ &
939cf45 @tj Added `make docs`
tj authored
57
58 docclean:
59 rm -f docs/*.{1,html}
60
0515e14 @tj Added `make test-cov`
tj authored
61 .PHONY: install uninstall install-docs install-support uninstall-support test test-cov docs docclean
Something went wrong with that request. Please try again.