add script to extract reference documentation from headers

This commit is contained in:
Arvid Norberg
2013-07-19 16:29:53 +00:00
parent a2f9337b69
commit 3264ec5d40
2 changed files with 560 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ TARGETS = index \
FIGURES = read_disk_buffers write_disk_buffers troubleshooting
html: $(TARGETS:=.html) $(FIGURES:=.png)
html: $(TARGETS:=.html) $(FIGURES:=.png) todo.html reference.html
pdf: $(TARGETS:=.pdf) $(FIGURES:=.eps)
@@ -37,6 +37,9 @@ all: html
todo.html:gen_todo.py ../src/*.cpp ../include/libtorrent/*.hpp
python gen_todo.py
reference.html:gen_reference_doc.py ../include/libtorrent/*.hpp
python gen_reference_doc.py
%.epub:%.rst
rst2epub $? $@
@@ -56,5 +59,5 @@ todo.html:gen_todo.py ../src/*.cpp ../include/libtorrent/*.hpp
cp $@ $(WEB_PATH)/$@
clean:
rm -f $(TARGETS:=.html) $(TARGETS:=.pdf) todo.html
rm -f $(TARGETS:=.html) $(TARGETS:=.pdf) todo.html reference*.html