premiere-libtorrent/docs/makefile

80 lines
1.7 KiB
Makefile
Raw Normal View History

# this makefile assumes that you have docutils and rst2pdf installed
WEB_PATH = ~/Documents/rasterbar/web/products/libtorrent
REFERENCE_TARGETS = \
reference \
reference-Session \
reference-Core \
reference-String \
reference-Plugins \
reference-Create_Torrents \
reference-Error_Codes \
reference-Time \
reference-Storage \
reference-Custom_Storage \
reference-Utility \
reference-Bencoding \
reference-Alerts \
reference-RSS \
reference-Filter \
reference-Settings \
manual-ref
TARGETS = index \
udp_tracker_protocol \
2011-01-02 04:53:28 +01:00
dht_rss \
dht_store \
client_test \
building \
features \
contributing\
examples \
extension_protocol \
dht_extensions \
dht_sec \
python_binding \
2009-02-09 04:48:27 +01:00
projects \
2010-11-29 02:33:05 +01:00
utp \
tuning \
hacking \
$(REFERENCE_TARGETS)
FIGURES = read_disk_buffers write_disk_buffers troubleshooting
html: $(TARGETS:=.html) $(FIGURES:=.png) todo.html
2009-02-09 04:48:27 +01:00
pdf: $(TARGETS:=.pdf) $(FIGURES:=.eps)
epub: $(TARGETS:=.epub) $(FIGURES:=.png)
all: html
todo.html:gen_todo.py ../src/*.cpp ../include/libtorrent/*.hpp
python gen_todo.py
$(REFERENCE_TARGETS:=.rst):gen_reference_doc.py ../include/libtorrent/*.hpp ../include/libtorrent/kademlia/*.hpp manual.rst
python gen_reference_doc.py
%.epub:%.rst
rst2epub $? $@
%.pdf:%.rst
rst2pdf $? -o $@ --stylesheets stylesheet
%.html:%.rst
2012-06-06 20:14:55 +02:00
rst2html-2.6.py --template=template.txt --stylesheet-path=style.css --link-stylesheet --no-toc-backlinks $? > $@
2014-01-10 06:41:45 +01:00
rst2html-2.6.py --template=template2.txt --stylesheet-path=style.css --link-stylesheet --no-toc-backlinks $? > $(WEB_PATH)/$@
%.png:%.dot
dot -Tpng $? >$@
cp $@ $(WEB_PATH)/$@
2009-02-09 04:48:27 +01:00
%.eps:%.dot
dot -Teps $? >$@
cp $@ $(WEB_PATH)/$@
clean:
2013-08-01 18:15:02 +02:00
rm -f $(TARGETS:=.html) $(TARGETS:=.pdf) todo.html reference*.html reference*.rst