2010-05-27 00:05:31 +04:00
|
|
|
WAF=python tools/waf-light
|
2009-12-06 09:35:26 +03:00
|
|
|
|
2009-10-03 23:46:59 +04:00
|
|
|
all:
|
2009-12-06 09:35:26 +03:00
|
|
|
@$(WAF) build
|
2009-10-03 23:46:59 +04:00
|
|
|
|
|
|
|
all-progress:
|
2009-12-06 09:35:26 +03:00
|
|
|
@$(WAF) -p build
|
2009-10-03 23:46:59 +04:00
|
|
|
|
|
|
|
install:
|
2009-12-06 09:35:26 +03:00
|
|
|
@$(WAF) install
|
2009-10-03 23:46:59 +04:00
|
|
|
|
|
|
|
uninstall:
|
2009-12-06 09:35:26 +03:00
|
|
|
@$(WAF) uninstall
|
2009-10-04 00:42:03 +04:00
|
|
|
|
2009-10-03 23:46:59 +04:00
|
|
|
test: all
|
2010-06-19 05:14:06 +04:00
|
|
|
python tools/test.py --mode=release simple message
|
2009-10-04 00:42:03 +04:00
|
|
|
|
2009-10-03 23:46:59 +04:00
|
|
|
test-all: all
|
|
|
|
python tools/test.py --mode=debug,release
|
|
|
|
|
2010-03-03 00:18:59 +03:00
|
|
|
test-release: all
|
|
|
|
python tools/test.py --mode=release
|
|
|
|
|
2009-10-03 23:46:59 +04:00
|
|
|
test-debug: all
|
|
|
|
python tools/test.py --mode=debug
|
|
|
|
|
2010-06-19 05:14:06 +04:00
|
|
|
test-message: all
|
|
|
|
python tools/test.py message
|
|
|
|
|
2010-02-25 09:36:17 +03:00
|
|
|
test-simple: all
|
|
|
|
python tools/test.py simple
|
|
|
|
|
|
|
|
test-pummel: all
|
|
|
|
python tools/test.py pummel
|
|
|
|
|
|
|
|
test-internet: all
|
|
|
|
python tools/test.py internet
|
|
|
|
|
2010-03-27 05:32:19 +03:00
|
|
|
# http://rtomayko.github.com/ronn
|
|
|
|
# gem install ronn
|
2010-02-21 09:30:56 +03:00
|
|
|
doc: doc/node.1 doc/api.html doc/index.html doc/changelog.html
|
2009-10-03 23:46:59 +04:00
|
|
|
|
2010-04-10 02:34:08 +04:00
|
|
|
## HACK to give the ronn-generated page a TOC
|
2010-07-12 01:50:24 +04:00
|
|
|
doc/api.html: all doc/api.markdown doc/api_header.html doc/api_footer.html
|
|
|
|
build/default/node tools/ronnjs/bin/ronn.js --fragment doc/api.markdown \
|
2010-04-09 00:07:14 +04:00
|
|
|
| sed "s/<h2>\(.*\)<\/h2>/<h2 id=\"\1\">\1<\/h2>/g" \
|
|
|
|
| cat doc/api_header.html - doc/api_footer.html > doc/api.html
|
2009-10-03 23:46:59 +04:00
|
|
|
|
2010-05-05 08:17:29 +04:00
|
|
|
doc/changelog.html: ChangeLog doc/changelog_header.html doc/changelog_footer.html
|
|
|
|
cat doc/changelog_header.html ChangeLog doc/changelog_footer.html > doc/changelog.html
|
2010-02-21 09:30:56 +03:00
|
|
|
|
2010-07-13 02:43:09 +04:00
|
|
|
doc/node.1: doc/api.markdown all
|
2010-07-12 01:50:24 +04:00
|
|
|
build/default/node tools/ronnjs/bin/ronn.js --roff doc/api.markdown > doc/node.1
|
2009-10-03 23:46:59 +04:00
|
|
|
|
|
|
|
website-upload: doc
|
2010-08-20 13:00:37 +04:00
|
|
|
scp doc/* ryan@nodejs.org:~/web/nodejs.org/
|
2009-10-03 23:46:59 +04:00
|
|
|
|
2009-12-30 04:45:15 +03:00
|
|
|
docclean:
|
2010-03-26 22:39:35 +03:00
|
|
|
@-rm -f doc/node.1 doc/api.html doc/changelog.html
|
2009-12-30 04:45:15 +03:00
|
|
|
|
2010-03-07 23:13:16 +03:00
|
|
|
clean:
|
2009-12-06 09:35:26 +03:00
|
|
|
@$(WAF) clean
|
2010-04-20 02:48:12 +04:00
|
|
|
@-find tools -name "*.pyc" | xargs rm -f
|
2009-10-03 23:46:59 +04:00
|
|
|
|
2010-04-20 02:48:12 +04:00
|
|
|
distclean: docclean
|
|
|
|
@-find tools -name "*.pyc" | xargs rm -f
|
|
|
|
@-rm -rf build/ node node_g
|
2009-10-03 23:46:59 +04:00
|
|
|
|
|
|
|
check:
|
|
|
|
@tools/waf-light check
|
|
|
|
|
2010-02-18 02:07:19 +03:00
|
|
|
VERSION=$(shell git describe)
|
2009-10-04 00:42:03 +04:00
|
|
|
TARNAME=node-$(VERSION)
|
|
|
|
|
|
|
|
dist: doc/node.1 doc/api.html
|
2010-05-14 02:54:50 +04:00
|
|
|
git archive --format=tar --prefix=$(TARNAME)/ HEAD | tar xf -
|
2009-10-04 00:42:03 +04:00
|
|
|
mkdir -p $(TARNAME)/doc
|
|
|
|
cp doc/node.1 $(TARNAME)/doc/node.1
|
|
|
|
cp doc/api.html $(TARNAME)/doc/api.html
|
2010-05-14 02:54:50 +04:00
|
|
|
rm -rf $(TARNAME)/deps/v8/test # too big
|
|
|
|
tar -cf $(TARNAME).tar $(TARNAME)
|
|
|
|
rm -rf $(TARNAME)
|
2009-10-04 00:42:03 +04:00
|
|
|
gzip -f -9 $(TARNAME).tar
|
2009-10-03 23:46:59 +04:00
|
|
|
|
2010-10-14 03:20:24 +04:00
|
|
|
bench:
|
|
|
|
benchmark/http_simple_bench.sh
|
|
|
|
|
|
|
|
.PHONY: bench clean docclean dist distclean check uninstall install all test test-all website-upload
|