1
Fork 0

Move apidoc creation to a toplevel dir with makefiles

This commit is contained in:
Dustin J. Mitchell 2010-07-17 16:07:14 -05:00
parent 7b16acbd88
commit e40a332aa6
6 changed files with 21 additions and 4 deletions

2
.gitignore vendored
View File

@ -34,3 +34,5 @@ master/docs/latest
twisted/plugins/dropin.cache
.coverage
coverage-html
apidocs/reference
apidocs/reference.tgz

View File

@ -2,10 +2,10 @@
.PHONY: docs apidocs some-apidocs paper
docs:
$(MAKE) -C docs
$(MAKE) -C master/docs
reference:
cd docs; ./gen-reference
apidocs:
$(MAKE) -C apidocs
pylint:
cd master; $(MAKE) pylint

15
apidocs/Makefile Normal file
View File

@ -0,0 +1,15 @@
.PHONY: all reference cleanpyc
all: reference.tgz
cleanpyc:
cd .. && find master slave -name '*.pyc' -exec rm \{} \; || exit 1
reference: cleanpyc
rm -rf reference
cd .. && python apidocs/epyrun -o apidocs/reference \
--exclude="buildbot\\.test" --exclude="buildslave\\.test" \
buildbot buildslave
reference.tgz: reference
tar -zcf reference.tgz reference

View File

@ -1,6 +1,6 @@
all: docs.tgz
VERSION=$(shell python -c 'g = {}; execfile("../master/buildbot/__init__.py",g); print g["version"]')
VERSION=$(shell python -c 'g = {}; execfile("../buildbot/__init__.py",g); print g["version"]')
buildbot.info: buildbot.texinfo
echo "@set VERSION $(VERSION)" > version.texinfo