Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 143 lines (99 sloc) 3.187 kb
97c9745 @ry Back to WAF
ry authored
1 WAF=python tools/waf-light
90ab079 @ry Use --jobs=1 with WAF
ry authored
2
b31d5ac @ry Update website address in Makefile
ry authored
3 web_root = node@nodejs.org:~/web/nodejs.org/
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
4
e5a0fbe @rsms Added support for cross compilation and also fixed DEST_CPU to represent...
rsms authored
5 all: program
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
6
97c9745 @ry Back to WAF
ry authored
7 all-progress:
8 @$(WAF) -p build
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
9
e5a0fbe @rsms Added support for cross compilation and also fixed DEST_CPU to represent...
rsms authored
10 program:
11 @$(WAF) --product-type=program build
12
13 staticlib:
14 @$(WAF) --product-type=cstaticlib build
15
16 dynamiclib:
17 @$(WAF) --product-type=cshlib build
18
97c9745 @ry Back to WAF
ry authored
19 install:
20 @$(WAF) install
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
21
97c9745 @ry Back to WAF
ry authored
22 uninstall:
23 @$(WAF) uninstall
15594ea @ry Replace WAF with make/autoconf
ry authored
24
97c9745 @ry Back to WAF
ry authored
25 test: all
125b868 @ry Add message tests
ry authored
26 python tools/test.py --mode=release simple message
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
27
d02131d @ry Add 'make test-valgrind'
ry authored
28 test-valgrind: all
29 python tools/test.py --mode=release --valgrind simple message
30
97c9745 @ry Back to WAF
ry authored
31 test-all: all
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
32 python tools/test.py --mode=debug,release
33
d02131d @ry Add 'make test-valgrind'
ry authored
34 test-all-valgrind: all
35 python tools/test.py --mode=debug,release --valgrind
36
97c9745 @ry Back to WAF
ry authored
37 test-release: all
6670154 @ry 'make test' only runs the simple test
ry authored
38 python tools/test.py --mode=release
39
97c9745 @ry Back to WAF
ry authored
40 test-debug: all
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
41 python tools/test.py --mode=debug
42
97c9745 @ry Back to WAF
ry authored
43 test-message: all
125b868 @ry Add message tests
ry authored
44 python tools/test.py message
45
97c9745 @ry Back to WAF
ry authored
46 test-simple: all
04fac19 @arlolra Split tests.
arlolra authored
47 python tools/test.py simple
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
48
97c9745 @ry Back to WAF
ry authored
49 test-pummel: all
04fac19 @arlolra Split tests.
arlolra authored
50 python tools/test.py pummel
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
51
97c9745 @ry Back to WAF
ry authored
52 test-internet: all
04fac19 @arlolra Split tests.
arlolra authored
53 python tools/test.py internet
54
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
55 build/default/node: all
56
57 apidoc_sources = $(wildcard doc/api/*.markdown)
58 apidocs = $(addprefix build/,$(apidoc_sources:.markdown=.html))
59
60 apidoc_dirs = build/doc build/doc/api/ build/doc/api/assets
2392775 @ry Fix make doc
ry authored
61
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
62 apiassets = $(subst api_assets,api/assets,$(addprefix build/,$(wildcard doc/api_assets/*)))
320e002 @ry fix 'make doc'
ry authored
63
90d1e47 @ry make doc improvements
ry authored
64 website_files = \
65 build/doc/index.html \
eb155ea @ry Bump version to v0.4.0
ry authored
66 build/doc/v0.4_announcement.html \
90d1e47 @ry make doc improvements
ry authored
67 build/doc/cla.html \
68 build/doc/sh_main.js \
69 build/doc/sh_javascript.min.js \
70 build/doc/sh_vim-dark.css \
71 build/doc/logo.png \
72 build/doc/sponsored.png \
21e3b66 @stagas Added favicon.ico
stagas authored
73 build/doc/favicon.ico \
90d1e47 @ry make doc improvements
ry authored
74 build/doc/pipe.css
75
eb565e1 @ry Simplify website
ry authored
76 doc: build/default/node $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs)
320e002 @ry fix 'make doc'
ry authored
77
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
78 $(apidoc_dirs):
79 mkdir -p $@
2392775 @ry Fix make doc
ry authored
80
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
81 build/doc/api/assets/%: doc/api_assets/% build/doc/api/assets/
82 cp $< $@
83
90d1e47 @ry make doc improvements
ry authored
84 build/doc/%: doc/%
85 cp $< $@
86
8d27393 @miksago Generate Table of Contents at compile time.
miksago authored
87 build/doc/api/%.html: doc/api/%.markdown build/default/node $(apidoc_dirs) $(apiassets) tools/doctool/doctool.js
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
88 build/default/node tools/doctool/doctool.js doc/template.html $< > $@
89
90d1e47 @ry make doc improvements
ry authored
90 build/doc/%:
2392775 @ry Fix make doc
ry authored
91
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
92 website-upload: doc
a01e095 @ry scp should copy the right dir
ry authored
93 scp -r build/doc/* $(web_root)
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
94
95 docopen: build/doc/api/all.html
96 -google-chrome build/doc/api/all.html
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
97
2c016ba @ry 'make distclean' should not call 'waf clean'
ry authored
98 docclean:
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
99 -rm -rf build/doc
2c016ba @ry 'make distclean' should not call 'waf clean'
ry authored
100
d67fdcc @ry clean should not docclean
ry authored
101 clean:
1dad95a @ry Print 'make clean' commands
ry authored
102 $(WAF) clean
103 -find tools -name "*.pyc" | xargs rm -f
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
104
ff64094 @ry Make 'make distclean' work on solaris
ry authored
105 distclean: docclean
1dad95a @ry Print 'make clean' commands
ry authored
106 -find tools -name "*.pyc" | xargs rm -f
107 -rm -rf build/ node node_g
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
108
97c9745 @ry Back to WAF
ry authored
109 check:
110 @tools/waf-light check
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
111
217b60a @ry sed -i 's/git-/git /g' Makefile
ry authored
112 VERSION=$(shell git describe)
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
113 TARNAME=node-$(VERSION)
114
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
115 #dist: doc/node.1 doc/api
116 dist: doc
a1138c6 @miksago Cleanup Makefile for JSLint, CPPLint
miksago authored
117 git archive --format=tar --prefix=$(TARNAME)/ HEAD | tar xf -
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
118 mkdir -p $(TARNAME)/doc
119 cp doc/node.1 $(TARNAME)/doc/node.1
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
120 cp -r build/doc/api $(TARNAME)/doc/api
ce2d5ad @ry Change the 'make dist' to remove v8 test dir
ry authored
121 rm -rf $(TARNAME)/deps/v8/test # too big
122 tar -cf $(TARNAME).tar $(TARNAME)
123 rm -rf $(TARNAME)
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
124 gzip -f -9 $(TARNAME).tar
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
125
ff456b3 @ry Add 'make bench' script
ry authored
126 bench:
127 benchmark/http_simple_bench.sh
128
3cf4827 @ry Add idle connection test
ry authored
129 bench-idle:
130 ./node benchmark/idle_server.js &
131 sleep 1
132 ./node benchmark/idle_clients.js &
133
ac58d3a @ry Import cpplint.py
ry authored
134 jslint:
558e5ba @ry lint util.js and src/node.js
ry authored
135 PYTHONPATH=tools/closure_linter/ python tools/closure_linter/closure_linter/gjslint.py --unix_mode --strict --nojsdoc -r lib/ -r src/ -r test/
3cf4827 @ry Add idle connection test
ry authored
136
ac58d3a @ry Import cpplint.py
ry authored
137 cpplint:
a1138c6 @miksago Cleanup Makefile for JSLint, CPPLint
miksago authored
138 @python tools/cpplint.py $(wildcard src/*.cc src/*.h src/*.c)
ac58d3a @ry Import cpplint.py
ry authored
139
140 lint: jslint cpplint
a128451 @ry Import Google's closure_linter
ry authored
141
ac58d3a @ry Import cpplint.py
ry authored
142 .PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean check uninstall install all program staticlib dynamiclib test test-all website-upload
Something went wrong with that request. Please try again.