2008-10-17 17:31:20 +00:00
|
|
|
# this makefile assumes that you have docutils and rst2pdf installed
|
|
|
|
|
2008-10-17 03:23:30 +00:00
|
|
|
WEB_PATH = ~/Documents/rasterbar/web/products/libtorrent
|
|
|
|
|
2013-08-05 05:26:15 +00:00
|
|
|
REFERENCE_TARGETS = \
|
|
|
|
reference \
|
2013-12-19 05:35:47 +00:00
|
|
|
reference-Session \
|
2013-08-05 05:26:15 +00:00
|
|
|
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 \
|
2013-08-06 02:50:57 +00:00
|
|
|
reference-Filter \
|
2013-08-11 16:57:33 +00:00
|
|
|
reference-Settings \
|
|
|
|
manual-ref
|
2013-08-05 05:26:15 +00:00
|
|
|
|
2008-10-17 17:31:20 +00:00
|
|
|
TARGETS = index \
|
|
|
|
udp_tracker_protocol \
|
2011-01-02 03:53:28 +00:00
|
|
|
dht_rss \
|
2011-05-25 02:26:07 +00:00
|
|
|
dht_store \
|
2008-10-17 17:31:20 +00:00
|
|
|
client_test \
|
|
|
|
building \
|
|
|
|
features \
|
2010-02-18 20:01:23 +00:00
|
|
|
contributing\
|
2008-10-17 17:31:20 +00:00
|
|
|
examples \
|
|
|
|
extension_protocol \
|
|
|
|
dht_extensions \
|
2010-12-11 09:38:07 +00:00
|
|
|
dht_sec \
|
2008-10-17 17:31:20 +00:00
|
|
|
python_binding \
|
2009-02-09 03:48:27 +00:00
|
|
|
projects \
|
2010-11-29 01:33:05 +00:00
|
|
|
utp \
|
2011-12-11 09:44:05 +00:00
|
|
|
tuning \
|
2013-07-24 05:04:46 +00:00
|
|
|
hacking \
|
2013-08-05 05:26:15 +00:00
|
|
|
$(REFERENCE_TARGETS)
|
2008-10-17 17:31:20 +00:00
|
|
|
|
2011-03-13 18:19:09 +00:00
|
|
|
FIGURES = read_disk_buffers write_disk_buffers troubleshooting
|
2008-10-17 17:31:20 +00:00
|
|
|
|
2013-07-24 05:04:46 +00:00
|
|
|
html: $(TARGETS:=.html) $(FIGURES:=.png) todo.html
|
2009-02-09 03:48:27 +00:00
|
|
|
|
|
|
|
pdf: $(TARGETS:=.pdf) $(FIGURES:=.eps)
|
2008-10-17 17:31:20 +00:00
|
|
|
|
2012-12-31 06:51:04 +00:00
|
|
|
epub: $(TARGETS:=.epub) $(FIGURES:=.png)
|
|
|
|
|
2008-10-17 17:31:20 +00:00
|
|
|
all: html
|
|
|
|
|
2013-06-14 16:49:06 +00:00
|
|
|
todo.html:gen_todo.py ../src/*.cpp ../include/libtorrent/*.hpp
|
|
|
|
python gen_todo.py
|
|
|
|
|
2013-08-11 16:57:33 +00:00
|
|
|
$(REFERENCE_TARGETS:=.rst):gen_reference_doc.py ../include/libtorrent/*.hpp ../include/libtorrent/kademlia/*.hpp manual.rst
|
2013-07-19 16:29:53 +00:00
|
|
|
python gen_reference_doc.py
|
|
|
|
|
2012-12-31 06:51:04 +00:00
|
|
|
%.epub:%.rst
|
|
|
|
rst2epub $? $@
|
|
|
|
|
2008-10-17 17:31:20 +00:00
|
|
|
%.pdf:%.rst
|
2008-10-22 00:55:51 +00:00
|
|
|
rst2pdf $? -o $@ --stylesheets stylesheet
|
2008-10-17 03:23:30 +00:00
|
|
|
|
|
|
|
%.html:%.rst
|
2012-06-06 18:14:55 +00:00
|
|
|
rst2html-2.6.py --template=template.txt --stylesheet-path=style.css --link-stylesheet --no-toc-backlinks $? > $@
|
2008-10-17 03:23:30 +00:00
|
|
|
cp $@ $(WEB_PATH)/$@
|
|
|
|
|
2011-03-13 18:19:09 +00:00
|
|
|
%.png:%.dot
|
|
|
|
dot -Tpng $? >$@
|
|
|
|
cp $@ $(WEB_PATH)/$@
|
|
|
|
|
2009-02-09 03:48:27 +00:00
|
|
|
%.eps:%.dot
|
|
|
|
dot -Teps $? >$@
|
|
|
|
cp $@ $(WEB_PATH)/$@
|
|
|
|
|
2008-10-17 03:23:30 +00:00
|
|
|
clean:
|
2013-08-01 16:15:02 +00:00
|
|
|
rm -f $(TARGETS:=.html) $(TARGETS:=.pdf) todo.html reference*.html reference*.rst
|
2008-10-17 03:23:30 +00:00
|
|
|
|