Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Improve "make dist" remove generated doc from repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Oct 3, 2009
1 parent 861f28f commit bf0d278
Show file tree
Hide file tree
Showing 8 changed files with 124 additions and 6,469 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -3,5 +3,8 @@ build
tags
.lock-wscript
*.pyc
doc/api.xml
doc/api.html
doc/node.1
node
node_g
26 changes: 17 additions & 9 deletions Makefile
Expand Up @@ -14,10 +14,10 @@ install:

uninstall:
@tools/waf-light uninstall

test: all
python tools/test.py --mode=release

test-all: all
python tools/test.py --mode=debug,release

Expand All @@ -40,26 +40,34 @@ 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 /etc/asciidoc/docbook-xsl/manpage.xsl \
doc/api.xml
xsltproc --output doc/node.1 --nonet doc/manpage.xsl doc/api.xml

website-upload: doc
scp doc/* linode:~/tinyclouds/node/

clean:
@-rm doc/node.1 doc/api.xml doc/api.html
@tools/waf-light clean

distclean:
@tools/waf-light distclean
@-rm -rf _build_
@-rm -f Makefile
@-rm -f *.pyc

check:
@tools/waf-light check

dist:
@tools/waf-light dist
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 dist distclean check uninstall install all test test-all website-upload

0 comments on commit bf0d278

Please sign in to comment.