Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 173 lines (127 sloc) 4.328 kb
14b04b0 @ry Remove SCONS deprecate WAF
ry authored
1 BUILDTYPE ?= Release
90ab079 @ry Use --jobs=1 with WAF
ry authored
2
10d92b3 @ry saner targets
ry authored
3 ifeq ($(BUILDTYPE),Release)
4 all: out/Makefile node
5 else
6 all: out/Makefile node_g
7 endif
8
bb8f734 @ry Fix make targets so they detect changes
ry authored
9 # The .PHONY is needed to ensure that we recursively use the out/Makefile
10 # to check for changes.
11 .PHONY: node node_g
10d92b3 @ry saner targets
ry authored
12
bb8f734 @ry Fix make targets so they detect changes
ry authored
13 node:
10d92b3 @ry saner targets
ry authored
14 $(MAKE) -C out BUILDTYPE=Release
bb8f734 @ry Fix make targets so they detect changes
ry authored
15 ln -fs out/Release/node node
10d92b3 @ry saner targets
ry authored
16
bb8f734 @ry Fix make targets so they detect changes
ry authored
17 node_g:
18 $(MAKE) -C out BUILDTYPE=Debug
19 ln -fs out/Debug/node node_g
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
20
10d92b3 @ry saner targets
ry authored
21 out/Debug/node:
22 $(MAKE) -C out BUILDTYPE=Debug
e5a0fbe @rsms Added support for cross compilation and also fixed DEST_CPU to represent...
rsms authored
23
624f70e @ry GYP: rename options.gypi to config.gypi
ry authored
24 out/Makefile: common.gypi deps/uv/uv.gyp deps/http_parser/http_parser.gyp deps/zlib/zlib.gyp deps/v8/build/common.gypi deps/v8/tools/gyp/v8.gyp node.gyp config.gypi
eda1538 build: regenerate out/Makefile from within the main Makefile
eddy_me08@yahoo.com authored
25 tools/gyp_node -f make
e5a0fbe @rsms Added support for cross compilation and also fixed DEST_CPU to represent...
rsms authored
26
be23c51 @indutny Implement make install
indutny authored
27 install: all
624f70e @ry GYP: rename options.gypi to config.gypi
ry authored
28 out/Release/node tools/installer.js ./config.gypi install
be23c51 @indutny Implement make install
indutny authored
29
30 uninstall:
624f70e @ry GYP: rename options.gypi to config.gypi
ry authored
31 out/Release/node tools/installer.js ./config.gypi uninstall
1db9a2a @bnoordhuis build: print "not yet implemented" warning on `make install`
bnoordhuis authored
32
14b04b0 @ry Remove SCONS deprecate WAF
ry authored
33 clean:
10d92b3 @ry saner targets
ry authored
34 -rm -rf out/Makefile node node_g out/**/*.o out/**/*.a out/$(BUILDTYPE)/node
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
35
14b04b0 @ry Remove SCONS deprecate WAF
ry authored
36 distclean:
48d21dd @ry Force makefile generation in gyp
ry authored
37 -rm -rf out
624f70e @ry GYP: rename options.gypi to config.gypi
ry authored
38 -rm config.gypi
15594ea @ry Replace WAF with make/autoconf
ry authored
39
97c9745 @ry Back to WAF
ry authored
40 test: all
125b868 @ry Add message tests
ry authored
41 python tools/test.py --mode=release simple message
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
42
38f948a @bnoordhuis http: make http2 the default, legacy backend is available with --use-htt...
bnoordhuis authored
43 test-http1: all
44 python tools/test.py --mode=release --use-http1 simple message
e1bb241 @bnoordhuis test: add targets `test-http2` and `test-all-http2`
bnoordhuis authored
45
d02131d @ry Add 'make test-valgrind'
ry authored
46 test-valgrind: all
47 python tools/test.py --mode=release --valgrind simple message
48
97c9745 @ry Back to WAF
ry authored
49 test-all: all
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
50 python tools/test.py --mode=debug,release
f7f8af8 @ry Merge remote branch 'origin/v0.6'
ry authored
51 $(MAKE) test-npm
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
52
38f948a @bnoordhuis http: make http2 the default, legacy backend is available with --use-htt...
bnoordhuis authored
53 test-all-http1: all
54 python tools/test.py --mode=debug,release --use-http1
e1bb241 @bnoordhuis test: add targets `test-http2` and `test-all-http2`
bnoordhuis authored
55
d02131d @ry Add 'make test-valgrind'
ry authored
56 test-all-valgrind: all
57 python tools/test.py --mode=debug,release --valgrind
58
97c9745 @ry Back to WAF
ry authored
59 test-release: all
6670154 @ry 'make test' only runs the simple test
ry authored
60 python tools/test.py --mode=release
61
97c9745 @ry Back to WAF
ry authored
62 test-debug: all
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
63 python tools/test.py --mode=debug
64
97c9745 @ry Back to WAF
ry authored
65 test-message: all
125b868 @ry Add message tests
ry authored
66 python tools/test.py message
67
97c9745 @ry Back to WAF
ry authored
68 test-simple: all
04fac19 @arlolra Split tests.
arlolra authored
69 python tools/test.py simple
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
70
97c9745 @ry Back to WAF
ry authored
71 test-pummel: all
04fac19 @arlolra Split tests.
arlolra authored
72 python tools/test.py pummel
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
73
97c9745 @ry Back to WAF
ry authored
74 test-internet: all
04fac19 @arlolra Split tests.
arlolra authored
75 python tools/test.py internet
76
f7f8af8 @ry Merge remote branch 'origin/v0.6'
ry authored
77 test-npm: node
d75de86 @isaacs add 'make test-npm'
isaacs authored
78 ./node deps/npm/test/run.js
79
f7f8af8 @ry Merge remote branch 'origin/v0.6'
ry authored
80 test-npm-publish: node
d75de86 @isaacs add 'make test-npm'
isaacs authored
81 npm_package_config_publishtest=true ./node deps/npm/test/run.js
15286c8 @ry Start 'make test-uv' command
ry authored
82
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
83 apidoc_sources = $(wildcard doc/api/*.markdown)
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
84 apidocs = $(addprefix out/,$(apidoc_sources:.markdown=.html))
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
85
ae17e2d @ry Fix doc generation for new website
ry authored
86 apidoc_dirs = out/doc out/doc/api/ out/doc/api/assets out/doc/about out/doc/community out/doc/logos
2392775 @ry Fix make doc
ry authored
87
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
88 apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/*)))
320e002 @ry fix 'make doc'
ry authored
89
90d1e47 @ry make doc improvements
ry authored
90 website_files = \
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
91 out/doc/index.html \
92 out/doc/v0.4_announcement.html \
93 out/doc/cla.html \
94 out/doc/sh_main.js \
95 out/doc/sh_javascript.min.js \
96 out/doc/sh_vim-dark.css \
97 out/doc/logo.png \
98 out/doc/sponsored.png \
ae17e2d @ry Fix doc generation for new website
ry authored
99 out/doc/favicon.ico \
100 out/doc/pipe.css \
101 out/doc/about/index.html \
102 out/doc/close-downloads.png \
103 out/doc/community/index.html \
104 out/doc/community/not-invented-here.png \
105 out/doc/download-logo.png \
106 out/doc/ebay-logo.png \
107 out/doc/footer-logo.png \
108 out/doc/icons.png \
109 out/doc/linkedin-logo.png \
110 out/doc/logos/index.html \
111 out/doc/microsoft-logo.png \
112 out/doc/platform-icons.png \
113 out/doc/ryan-speaker.jpg \
114 out/doc/yahoo-logo.png
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
115
14b04b0 @ry Remove SCONS deprecate WAF
ry authored
116 doc: out/Release/node $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs)
320e002 @ry fix 'make doc'
ry authored
117
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
118 $(apidoc_dirs):
119 mkdir -p $@
2392775 @ry Fix make doc
ry authored
120
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
121 out/doc/api/assets/%: doc/api_assets/% out/doc/api/assets/
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
122 cp $< $@
123
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
124 out/doc/%: doc/%
90d1e47 @ry make doc improvements
ry authored
125 cp $< $@
126
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
127 out/doc/api/%.html: doc/api/%.markdown out/Release/node $(apidoc_dirs) $(apiassets) tools/doctool/doctool.js
128 out/Release/node tools/doctool/doctool.js doc/template.html $< > $@
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
129
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
130 out/doc/%:
2392775 @ry Fix make doc
ry authored
131
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
132 website-upload: doc
ee73132 @ry use rsync instead of scp to upload website
ry authored
133 rsync -r out/doc/ node@nodejs.org:~/web/nodejs.org/
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
134
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
135 docopen: out/doc/api/all.html
136 -google-chrome out/doc/api/all.html
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
137
2c016ba @ry 'make distclean' should not call 'waf clean'
ry authored
138 docclean:
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
139 -rm -rf out/doc
2c016ba @ry 'make distclean' should not call 'waf clean'
ry authored
140
14b04b0 @ry Remove SCONS deprecate WAF
ry authored
141 VERSION=$(shell git describe)
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
142 TARNAME=node-$(VERSION)
143
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
144 #dist: doc/node.1 doc/api
14b04b0 @ry Remove SCONS deprecate WAF
ry authored
145 dist: doc
a1138c6 @miksago Cleanup Makefile for JSLint, CPPLint
miksago authored
146 git archive --format=tar --prefix=$(TARNAME)/ HEAD | tar xf -
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
147 mkdir -p $(TARNAME)/doc
148 cp doc/node.1 $(TARNAME)/doc/node.1
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
149 cp -r out/doc/api $(TARNAME)/doc/api
ce2d5ad @ry Change the 'make dist' to remove v8 test dir
ry authored
150 rm -rf $(TARNAME)/deps/v8/test # too big
a0198d0 @ry Remove logos from package
ry authored
151 rm -rf $(TARNAME)/doc/logos # too big
ce2d5ad @ry Change the 'make dist' to remove v8 test dir
ry authored
152 tar -cf $(TARNAME).tar $(TARNAME)
153 rm -rf $(TARNAME)
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
154 gzip -f -9 $(TARNAME).tar
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
155
ff456b3 @ry Add 'make bench' script
ry authored
156 bench:
157 benchmark/http_simple_bench.sh
158
3cf4827 @ry Add idle connection test
ry authored
159 bench-idle:
160 ./node benchmark/idle_server.js &
161 sleep 1
162 ./node benchmark/idle_clients.js &
163
ac58d3a @ry Import cpplint.py
ry authored
164 jslint:
558e5ba @ry lint util.js and src/node.js
ry authored
165 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
166
ac58d3a @ry Import cpplint.py
ry authored
167 cpplint:
a1138c6 @miksago Cleanup Makefile for JSLint, CPPLint
miksago authored
168 @python tools/cpplint.py $(wildcard src/*.cc src/*.h src/*.c)
ac58d3a @ry Import cpplint.py
ry authored
169
170 lint: jslint cpplint
a128451 @ry Import Google's closure_linter
ry authored
171
be23c51 @indutny Implement make install
indutny authored
172 .PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean check uninstall install install-includes install-bin all program staticlib dynamiclib test test-all website-upload
Something went wrong with that request. Please try again.