premiere-libtorrent/docs/makefile

51 lines
924 B
Makefile
Raw Normal View History

# this makefile assumes that you have docutils and rst2pdf installed
WEB_PATH = ~/Documents/rasterbar/web/products/libtorrent
TARGETS = index \
udp_tracker_protocol \
2011-01-02 04:53:28 +01:00
dht_rss \
client_test \
manual \
building \
features \
contributing\
examples \
extension_protocol \
make_torrent \
dht_extensions \
dht_sec \
libtorrent_plugins \
python_binding \
2009-02-09 04:48:27 +01:00
projects \
running_tests \
2010-11-29 02:33:05 +01:00
utp \
tuning
FIGURES = read_disk_buffers write_disk_buffers troubleshooting
2009-02-09 04:48:27 +01:00
html: $(TARGETS:=.html) $(FIGURES:=.png)
pdf: $(TARGETS:=.pdf) $(FIGURES:=.eps)
all: html
%.pdf:%.rst
rst2pdf $? -o $@ --stylesheets stylesheet
%.html:%.rst
2009-08-02 22:09:32 +02:00
rst2html.py --template=template.txt --stylesheet-path=style.css --link-stylesheet --no-toc-backlinks $? > $@
cp $@ $(WEB_PATH)/$@
%.png:%.dot
dot -Tpng $? >$@
cp $@ $(WEB_PATH)/$@
2009-02-09 04:48:27 +01:00
%.eps:%.dot
dot -Teps $? >$@
cp $@ $(WEB_PATH)/$@
clean:
rm -f $(TARGETS:=.html) $(TARGETS:=.pdf)