Skip to content

Commit 96a32ab

Browse files
committed
Adding doc traget to Makefile.
Details: Build the yajl doc into gh-pages branch from the makefile
1 parent 4bcfec2 commit 96a32ab

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,33 @@
1+
SHELL=/bin/bash
2+
HTMLDIR=doc/build/html
3+
HTMLSED=find ${HTMLDIR}/ -name '*.html' | xargs sed -i
4+
5+
.PHONY: usage install test doc gh-pages build-doc
6+
17
usage:
28
@echo
39
@echo Makefile for yajl-py
410
@echo
511
@echo Targets
612
@echo " install :" easy_install yajl-py
713
@echo " test :" run yajl-py tests
14+
@echo " doc :" install docs to gh-pages branch
815

916
install:
1017
easy_install .
1118

1219
test:
1320
nosetests -v tests/
21+
22+
doc: gh-pages
23+
24+
gh-pages: build-doc
25+
git co gh-pages
26+
rsync -vr ${HTMLDIR}/ ./
27+
28+
build-doc:
29+
make -C doc/ clean html
30+
mv ${HTMLDIR}/{_,}sources
31+
${HTMLSED} 's/_sources/sources/g'
32+
mv ${HTMLDIR}/{_,}static
33+
${HTMLSED} 's/_static/static/g'

0 commit comments

Comments
 (0)