Skip to content

Commit

Permalink
Move apidoc creation to a toplevel dir with makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin J. Mitchell committed Jul 17, 2010
1 parent 7b16acb commit e40a332
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ master/docs/latest
twisted/plugins/dropin.cache
.coverage
coverage-html
apidocs/reference
apidocs/reference.tgz
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions apidocs/Makefile
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion master/docs/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e40a332

Please sign in to comment.