mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
2.0 KiB
89 lines
2.0 KiB
WAF=python tools/waf-light --jobs=1
|
|
|
|
all:
|
|
@$(WAF) build
|
|
|
|
all-debug:
|
|
@$(WAF) -v build
|
|
|
|
all-progress:
|
|
@$(WAF) -p build
|
|
|
|
install:
|
|
@$(WAF) install
|
|
|
|
uninstall:
|
|
@$(WAF) uninstall
|
|
|
|
test: all
|
|
python tools/test.py --mode=release simple
|
|
|
|
test-all: all
|
|
python tools/test.py --mode=debug,release
|
|
|
|
test-release: all
|
|
python tools/test.py --mode=release
|
|
|
|
test-debug: all
|
|
python tools/test.py --mode=debug
|
|
|
|
test-simple: all
|
|
python tools/test.py simple
|
|
|
|
test-pummel: all
|
|
python tools/test.py pummel
|
|
|
|
test-internet: all
|
|
python tools/test.py internet
|
|
|
|
benchmark: all
|
|
build/default/node benchmark/run.js
|
|
|
|
# http://rtomayko.github.com/ronn
|
|
# gem install ronn
|
|
doc: doc/node.1 doc/api.html doc/index.html doc/changelog.html
|
|
|
|
doc/api.html: doc/api.markdown
|
|
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
|
|
|
|
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
|
|
|
|
doc/node.1: doc/api.markdown
|
|
ronn --roff doc/api.markdown > doc/node.1
|
|
|
|
website-upload: doc
|
|
scp doc/* ryan@nodejs.org:~/tinyclouds/node/
|
|
|
|
docclean:
|
|
@-rm -f doc/node.1 doc/api.html doc/changelog.html
|
|
|
|
clean:
|
|
@$(WAF) clean
|
|
@-find tools/ -name "*.pyc" -delete
|
|
|
|
distclean: clean docclean
|
|
@-rm -rf build/
|
|
|
|
check:
|
|
@tools/waf-light check
|
|
|
|
VERSION=$(shell git describe)
|
|
TARNAME=node-$(VERSION)
|
|
|
|
dist: doc/node.1 doc/api.html
|
|
git archive --prefix=$(TARNAME)/ HEAD > $(TARNAME).tar
|
|
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
|
|
|
|
.PHONY: benchmark clean docclean dist distclean check uninstall install all test test-all website-upload
|
|
|