Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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