0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/Makefile

89 lines
2.1 KiB
Makefile
Raw Normal View History

2010-05-26 22:05:31 +02:00
WAF=python tools/waf-light
all:
@$(WAF) build
all-progress:
@$(WAF) -p build
install:
@$(WAF) install
uninstall:
@$(WAF) uninstall
test: all
2010-06-19 03:14:06 +02:00
python tools/test.py --mode=release simple message
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
test-debug: all
python tools/test.py --mode=debug
2010-06-19 03:14:06 +02:00
test-message: all
python tools/test.py message
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
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
## HACK to give the ronn-generated page a TOC
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 \
| 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 doc/changelog_header.html doc/changelog_footer.html
cat doc/changelog_header.html ChangeLog doc/changelog_footer.html > doc/changelog.html
2010-02-21 07:30:56 +01:00
2010-07-13 00:43:09 +02:00
doc/node.1: doc/api.markdown all
build/default/node tools/ronnjs/bin/ronn.js --roff doc/api.markdown > doc/node.1
website-upload: doc
2010-08-20 11:00:37 +02:00
scp doc/* ryan@nodejs.org:~/web/nodejs.org/
docclean:
@-rm -f doc/node.1 doc/api.html doc/changelog.html
2010-03-07 21:13:16 +01:00
clean:
@$(WAF) clean
2010-04-20 00:48:12 +02:00
@-find tools -name "*.pyc" | xargs rm -f
2010-04-20 00:48:12 +02:00
distclean: docclean
@-find tools -name "*.pyc" | xargs rm -f
@-rm -rf build/ node node_g
check:
@tools/waf-light check
2010-02-18 00:07:19 +01:00
VERSION=$(shell git describe)
TARNAME=node-$(VERSION)
dist: doc/node.1 doc/api.html
git archive --format=tar --prefix=$(TARNAME)/ HEAD | tar xf -
mkdir -p $(TARNAME)/doc
cp doc/node.1 $(TARNAME)/doc/node.1
cp doc/api.html $(TARNAME)/doc/api.html
rm -rf $(TARNAME)/deps/v8/test # too big
tar -cf $(TARNAME).tar $(TARNAME)
rm -rf $(TARNAME)
gzip -f -9 $(TARNAME).tar
.PHONY: benchmark clean docclean dist distclean check uninstall install all test test-all website-upload