premiere-libtorrent/docs/makefile

104 lines
2.3 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-Core \
reference-Plugins \
reference-Create_Torrents \
reference-Error_Codes \
reference-Storage \
reference-Custom_Storage \
reference-Utility \
reference-Bencoding \
reference-Alerts \
reference-Filter \
reference-Settings \
reference-Bdecoding \
reference-ed25519 \
manual-ref
TARGETS = index \
udp_tracker_protocol \
2011-01-02 04:53:28 +01:00
dht_rss \
dht_store \
client_test \
building \
features \
troubleshooting \
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 \
streaming \
$(REFERENCE_TARGETS)
2014-09-01 09:16:31 +02:00
FIGURES = \
read_disk_buffers \
write_disk_buffers \
troubleshooting \
hacking \
utp_stack \
storage
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
2014-07-06 21:18:00 +02:00
settings.rst: ../include/libtorrent/settings_pack.hpp
python gen_settings_doc.py
2014-07-30 04:00:14 +02:00
stats_counters.rst: ../src/session_stats.cpp ../include/libtorrent/performance_counters.hpp
2014-07-09 01:44:34 +02:00
python gen_stats_doc.py
2014-07-06 21:18:00 +02:00
2014-07-09 01:44:34 +02:00
manual.rst: stats_counters.rst
2014-07-06 21:18:00 +02:00
touch manual.rst
2014-02-02 11:02:51 +01:00
troubleshooting_thumb.png: troubleshooting.png
convert troubleshooting.png -resize 800x800 troubleshooting_thumb.png
2014-07-10 18:23:47 +02:00
cp $@ $(WEB_PATH)/$@
2014-02-02 11:02:51 +01:00
todo.html:gen_todo.py ../src/*.cpp ../include/libtorrent/*.hpp
python gen_todo.py
2014-07-10 18:23:47 +02:00
cp $@ $(WEB_PATH)/$@
2014-08-04 04:16:47 +02:00
$(REFERENCE_TARGETS:=.rst):gen_reference_doc.py ../include/libtorrent/*.hpp ../include/libtorrent/kademlia/*.hpp manual.rst settings.rst stats_counters.rst
python gen_reference_doc.py
%.epub:%.rst
rst2epub $? $@
%.pdf:%.rst
rst2pdf $? -o $@ --stylesheets stylesheet
%.html:%.rst
rst2html-3.4.py --template=template.txt --stylesheet-path=style.css --link-stylesheet --no-toc-backlinks $? > $@
rst2html-3.4.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)/$@
2014-09-01 09:16:31 +02:00
%.png:%.diagram
java -jar /opt/local/share/java/ditaa0_9.jar -E $? $@
cp $@ $(WEB_PATH)/$@
clean:
2014-07-06 21:18:00 +02:00
rm -f $(TARGETS:=.html) $(TARGETS:=.pdf) settings.rst todo.html reference*.html reference*.rst