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