2009-12-06 07:35:26 +01:00
|
|
|
WAF=python tools/waf-light --jobs=1
|
|
|
|
|
2009-10-03 21:46:59 +02:00
|
|
|
all:
|
2009-12-06 07:35:26 +01:00
|
|
|
@$(WAF) build
|
2009-10-03 21:46:59 +02:00
|
|
|
|
|
|
|
all-debug:
|
2009-12-06 07:35:26 +01:00
|
|
|
@$(WAF) -v build
|
2009-10-03 21:46:59 +02:00
|
|
|
|
|
|
|
all-progress:
|
2009-12-06 07:35:26 +01:00
|
|
|
@$(WAF) -p build
|
2009-10-03 21:46:59 +02:00
|
|
|
|
|
|
|
install:
|
2009-12-06 07:35:26 +01:00
|
|
|
@$(WAF) install
|
2009-10-03 21:46:59 +02:00
|
|
|
|
|
|
|
uninstall:
|
2009-12-06 07:35:26 +01:00
|
|
|
@$(WAF) uninstall
|
2009-10-03 22:42:03 +02:00
|
|
|
|
2009-10-03 21:46:59 +02:00
|
|
|
test: all
|
2010-03-02 22:18:59 +01:00
|
|
|
python tools/test.py --mode=release simple
|
2009-10-03 22:42:03 +02:00
|
|
|
|
2009-10-03 21:46:59 +02:00
|
|
|
test-all: all
|
|
|
|
python tools/test.py --mode=debug,release
|
|
|
|
|
2010-03-02 22:18:59 +01:00
|
|
|
test-release: all
|
|
|
|
python tools/test.py --mode=release
|
|
|
|
|
2009-10-03 21:46:59 +02:00
|
|
|
test-debug: all
|
|
|
|
python tools/test.py --mode=debug
|
|
|
|
|
2010-02-25 07:36:17 +01: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
|
|
|
|
|
2009-10-03 21:46:59 +02:00
|
|
|
benchmark: all
|
|
|
|
build/default/node benchmark/run.js
|
|
|
|
|
2010-03-27 03:32:19 +01:00
|
|
|
# http://rtomayko.github.com/ronn
|
|
|
|
# gem install ronn
|
2010-02-21 07:30:56 +01:00
|
|
|
doc: doc/node.1 doc/api.html doc/index.html doc/changelog.html
|
2009-10-03 21:46:59 +02:00
|
|
|
|
2010-04-10 00:34:08 +02:00
|
|
|
## HACK to give the ronn-generated page a TOC
|
2010-04-10 00:50:38 +02:00
|
|
|
doc/api.html: doc/api.markdown doc/api_header.html doc/api_footer.html
|
2010-04-08 22:07:14 +02:00
|
|
|
ronn -f --html doc/api.markdown \
|
|
|
|
| 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 21:46:59 +02:00
|
|
|
|
2010-02-21 07:30:56 +01:00
|
|
|
doc/changelog.html: ChangeLog
|
|
|
|
echo '<html><head><title>Node.js ChangeLog</title> <link rel="stylesheet" href="./pipe.css" type="text/css" /> <link rel="stylesheet" href="./pipe-quirks.css" type="text/css" /> <body><h1>Node.js ChangeLog</h1> <pre>' > doc/changelog.html
|
|
|
|
cat ChangeLog >> doc/changelog.html
|
|
|
|
echo '</pre></body></html>' >> doc/changelog.html
|
|
|
|
|
2010-03-26 20:39:35 +01:00
|
|
|
doc/node.1: doc/api.markdown
|
|
|
|
ronn --roff doc/api.markdown > doc/node.1
|
2009-10-03 21:46:59 +02:00
|
|
|
|
|
|
|
website-upload: doc
|
2010-02-18 00:20:06 +01:00
|
|
|
scp doc/* ryan@nodejs.org:~/tinyclouds/node/
|
2009-10-03 21:46:59 +02:00
|
|
|
|
2009-12-30 02:45:15 +01:00
|
|
|
docclean:
|
2010-03-26 20:39:35 +01:00
|
|
|
@-rm -f doc/node.1 doc/api.html doc/changelog.html
|
2009-12-30 02:45:15 +01:00
|
|
|
|
2010-03-07 21:13:16 +01:00
|
|
|
clean:
|
2009-12-06 07:35:26 +01:00
|
|
|
@$(WAF) clean
|
2010-04-20 00:48:12 +02:00
|
|
|
@-find tools -name "*.pyc" | xargs rm -f
|
2009-10-03 21:46:59 +02:00
|
|
|
|
2010-04-20 00:48:12 +02:00
|
|
|
distclean: docclean
|
|
|
|
@-find tools -name "*.pyc" | xargs rm -f
|
|
|
|
@-rm -rf build/ node node_g
|
2009-10-03 21:46:59 +02:00
|
|
|
|
|
|
|
check:
|
|
|
|
@tools/waf-light check
|
|
|
|
|
2010-02-18 00:07:19 +01:00
|
|
|
VERSION=$(shell git describe)
|
2009-10-03 22:42:03 +02:00
|
|
|
TARNAME=node-$(VERSION)
|
|
|
|
|
|
|
|
dist: doc/node.1 doc/api.html
|
2010-02-18 00:07:19 +01:00
|
|
|
git archive --prefix=$(TARNAME)/ HEAD > $(TARNAME).tar
|
2009-10-03 22:42:03 +02:00
|
|
|
mkdir -p $(TARNAME)/doc
|
|
|
|
cp doc/node.1 $(TARNAME)/doc/node.1
|
|
|
|
cp doc/api.html $(TARNAME)/doc/api.html
|
|
|
|
tar rf $(TARNAME).tar \
|
|
|
|
$(TARNAME)/doc/node.1 \
|
|
|
|
$(TARNAME)/doc/api.html
|
|
|
|
rm -r $(TARNAME)
|
|
|
|
gzip -f -9 $(TARNAME).tar
|
2009-10-03 21:46:59 +02:00
|
|
|
|
2009-12-30 02:45:15 +01:00
|
|
|
.PHONY: benchmark clean docclean dist distclean check uninstall install all test test-all website-upload
|