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
|
2009-01-01 01:31:07 +01:00
|
|
|
DOCUTILS = ~/docutils
|
2008-10-17 05:23:30 +02:00
|
|
|
|
2008-10-17 19:31:20 +02:00
|
|
|
TARGETS = index \
|
|
|
|
udp_tracker_protocol \
|
|
|
|
client_test \
|
|
|
|
manual \
|
|
|
|
building \
|
|
|
|
features \
|
|
|
|
examples \
|
|
|
|
extension_protocol \
|
2008-11-19 19:32:36 +01:00
|
|
|
make_torrent \
|
2008-10-17 19:31:20 +02:00
|
|
|
dht_extensions \
|
|
|
|
libtorrent_plugins \
|
|
|
|
python_binding \
|
2009-02-09 04:48:27 +01:00
|
|
|
projects \
|
2009-05-25 09:11:09 +02:00
|
|
|
running_tests \
|
|
|
|
tuning
|
2008-10-17 19:31:20 +02:00
|
|
|
|
2009-02-09 04:48:27 +01:00
|
|
|
FIGURES = read_disk_buffers write_disk_buffers
|
2008-10-17 19:31:20 +02:00
|
|
|
|
2009-02-09 04:48:27 +01:00
|
|
|
html: $(TARGETS:=.html) $(FIGURES:=.png)
|
|
|
|
|
|
|
|
pdf: $(TARGETS:=.pdf) $(FIGURES:=.eps)
|
2008-10-17 19:31:20 +02:00
|
|
|
|
|
|
|
all: html
|
|
|
|
|
|
|
|
%.pdf:%.rst
|
2008-10-22 02:55:51 +02:00
|
|
|
rst2pdf $? -o $@ --stylesheets stylesheet
|
2008-10-17 05:23:30 +02:00
|
|
|
|
|
|
|
%.html:%.rst
|
|
|
|
python $(DOCUTILS)/tools/rst2html.py --template=template.txt --stylesheet-path=style.css --link-stylesheet --no-toc-backlinks $? > $@
|
|
|
|
cp $@ $(WEB_PATH)/$@
|
|
|
|
|
2009-02-09 04:48:27 +01:00
|
|
|
%.png:%.dot
|
|
|
|
dot -Tpng $? >$@
|
|
|
|
cp $@ $(WEB_PATH)/$@
|
|
|
|
|
|
|
|
%.eps:%.dot
|
|
|
|
dot -Teps $? >$@
|
|
|
|
cp $@ $(WEB_PATH)/$@
|
|
|
|
|
2008-10-17 05:23:30 +02:00
|
|
|
clean:
|
2008-10-17 19:31:20 +02:00
|
|
|
rm -f $(TARGETS:=.html) $(TARGETS:=.pdf)
|
2008-10-17 05:23:30 +02:00
|
|
|
|