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
|
|
|
|
|
2008-10-17 17:31:20 +00:00
|
|
|
TARGETS = index \
|
|
|
|
udp_tracker_protocol \
|
2011-01-02 03:53:28 +00:00
|
|
|
dht_rss \
|
2008-10-17 17:31:20 +00:00
|
|
|
client_test \
|
|
|
|
manual \
|
|
|
|
building \
|
|
|
|
features \
|
2010-02-18 20:01:23 +00:00
|
|
|
contributing\
|
2008-10-17 17:31:20 +00:00
|
|
|
examples \
|
|
|
|
extension_protocol \
|
2008-11-19 18:32:36 +00:00
|
|
|
make_torrent \
|
2008-10-17 17:31:20 +00:00
|
|
|
dht_extensions \
|
2010-12-11 09:38:07 +00:00
|
|
|
dht_sec \
|
2008-10-17 17:31:20 +00:00
|
|
|
libtorrent_plugins \
|
|
|
|
python_binding \
|
2009-02-09 03:48:27 +00:00
|
|
|
projects \
|
2009-05-25 07:11:09 +00:00
|
|
|
running_tests \
|
2010-11-29 01:33:05 +00:00
|
|
|
utp \
|
2009-05-25 07:11:09 +00:00
|
|
|
tuning
|
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
|
|
|
|
2009-02-09 03:48:27 +00:00
|
|
|
html: $(TARGETS:=.html) $(FIGURES:=.png)
|
|
|
|
|
|
|
|
pdf: $(TARGETS:=.pdf) $(FIGURES:=.eps)
|
2008-10-17 17:31:20 +00:00
|
|
|
|
|
|
|
all: html
|
|
|
|
|
|
|
|
%.pdf:%.rst
|
2008-10-22 00:55:51 +00:00
|
|
|
rst2pdf $? -o $@ --stylesheets stylesheet
|
2008-10-17 03:23:30 +00:00
|
|
|
|
|
|
|
%.html:%.rst
|
2009-08-02 20:09:32 +00:00
|
|
|
rst2html.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:
|
2008-10-17 17:31:20 +00:00
|
|
|
rm -f $(TARGETS:=.html) $(TARGETS:=.pdf)
|
2008-10-17 03:23:30 +00:00
|
|
|
|