forked from premiere/premiere-libtorrent
35 lines
680 B
Makefile
35 lines
680 B
Makefile
# this makefile assumes that you have docutils and rst2pdf installed
|
|
|
|
WEB_PATH = ~/Documents/rasterbar/web/products/libtorrent
|
|
DOCUTILS = ~/docutils
|
|
|
|
TARGETS = index \
|
|
udp_tracker_protocol \
|
|
client_test \
|
|
manual \
|
|
building \
|
|
features \
|
|
examples \
|
|
extension_protocol \
|
|
dht_extensions \
|
|
libtorrent_plugins \
|
|
python_binding \
|
|
projects
|
|
|
|
html: $(TARGETS:=.html)
|
|
|
|
pdf: $(TARGETS:=.pdf)
|
|
|
|
all: html
|
|
|
|
%.pdf:%.rst
|
|
rst2pdf $? -o $@ --stylesheets stylesheet
|
|
|
|
%.html:%.rst
|
|
python $(DOCUTILS)/tools/rst2html.py --template=template.txt --stylesheet-path=style.css --link-stylesheet --no-toc-backlinks $? > $@
|
|
cp $@ $(WEB_PATH)/$@
|
|
|
|
clean:
|
|
rm -f $(TARGETS:=.html) $(TARGETS:=.pdf)
|
|
|