Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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