Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 74 lines (53 sloc) 1.513 kb
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
1 #!/usr/bin/make -f
2
3 all:
4 @tools/waf-light build
5
6 all-debug:
7 @tools/waf-light -v build
8
9 all-progress:
10 @tools/waf-light -p build
11
12 install:
13 @tools/waf-light install
14
15 uninstall:
16 @tools/waf-light uninstall
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
17
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
18 test: all
19 python tools/test.py --mode=release
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
20
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
21 test-all: all
22 python tools/test.py --mode=debug,release
23
24 test-debug: all
25 python tools/test.py --mode=debug
26
27 benchmark: all
28 build/default/node benchmark/run.js
29
30 doc: doc/node.1 doc/api.html doc/index.html
31
32 doc/api.html: doc/api.txt
33 asciidoc --unsafe \
34 -a theme=pipe \
35 -a toc \
36 -a linkcss \
37 -o doc/api.html doc/api.txt
38
39 doc/api.xml: doc/api.txt
40 asciidoc -b docbook -d manpage -o doc/api.xml doc/api.txt
41
42 doc/node.1: doc/api.xml
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
43 xsltproc --output doc/node.1 --nonet doc/manpage.xsl doc/api.xml
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
44
45 website-upload: doc
46 scp doc/* linode:~/tinyclouds/node/
47
48 clean:
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
49 @-rm doc/node.1 doc/api.xml doc/api.html
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
50 @tools/waf-light clean
51
52 distclean:
53 @tools/waf-light distclean
54 @-rm -f *.pyc
55
56 check:
57 @tools/waf-light check
58
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
59 VERSION=$(shell git-describe)
60 TARNAME=node-$(VERSION)
61
62 dist: doc/node.1 doc/api.html
63 git-archive --prefix=$(TARNAME)/ HEAD > $(TARNAME).tar
64 mkdir -p $(TARNAME)/doc
65 cp doc/node.1 $(TARNAME)/doc/node.1
66 cp doc/api.html $(TARNAME)/doc/api.html
67 tar rf $(TARNAME).tar \
68 $(TARNAME)/doc/node.1 \
69 $(TARNAME)/doc/api.html
70 rm -r $(TARNAME)
71 gzip -f -9 $(TARNAME).tar
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
72
73 .PHONY: benchmark clean dist distclean check uninstall install all test test-all website-upload
Something went wrong with that request. Please try again.