0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00
nodejs/Makefile

94 lines
2.1 KiB
Makefile
Raw Normal View History

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
2010-03-02 22:18:59 +01:00
python tools/test.py --mode=release simple
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-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-02-21 07:30:56 +01:00
doc: doc/node.1 doc/api.html doc/index.html doc/changelog.html
doc/api.html: doc/api.txt
asciidoc --unsafe \
-a theme=pipe \
-a toc \
2010-02-17 22:14:34 +01:00
-a toclevels=1 \
-a linkcss \
-o doc/api.html doc/api.txt
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
doc/api.xml: doc/api.txt
asciidoc -b docbook -d manpage -o doc/api.xml doc/api.txt
doc/node.1: doc/api.xml
xsltproc --output doc/node.1 --nonet doc/manpage.xsl doc/api.xml
website-upload: doc
2010-02-18 00:20:06 +01:00
scp doc/* ryan@nodejs.org:~/tinyclouds/node/
docclean:
@-rm -f doc/node.1 doc/api.xml doc/api.html doc/changelog.html
clean: docclean
@$(WAF) clean
distclean: docclean
@-rm -rf build/
2009-10-07 12:43:21 +02:00
@-find tools/ -name "*.pyc" -delete
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
2010-02-18 00:07:19 +01:00
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