Skip to content

HTTPS clone URL

Subversion checkout URL

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