2011-01-15 16:48:30 +01:00
|
|
|
# This program is free software under the terms of the GNU General Public
|
|
|
|
# License. See the COPYING file which must come with this package.
|
|
|
|
|
|
|
|
SOURCES = $(wildcard *.rst)
|
|
|
|
HTML_TARGETS = $(patsubst %.rst,%.html,$(SOURCES))
|
|
|
|
|
|
|
|
RM = rm
|
2011-03-07 22:23:21 +01:00
|
|
|
RST2HTML=`type rst2html >/dev/null 2>&1 && echo rst2html || echo rst2html.py`
|
|
|
|
RST2MAN=`type rst2man >/dev/null 2>&1 && echo rst2man || echo rst2man.py`
|
2011-04-27 10:37:15 +02:00
|
|
|
SPHINXBUILD = sphinx-build
|
2011-01-15 16:48:30 +01:00
|
|
|
|
2012-02-24 11:13:27 +01:00
|
|
|
all: man doc
|
2011-01-15 16:48:30 +01:00
|
|
|
|
|
|
|
html: $(HTML_TARGETS)
|
|
|
|
|
|
|
|
$(HTML_TARGETS): %.html : %.rst
|
2011-01-27 19:50:24 +01:00
|
|
|
$(RST2HTML) $? $@
|
2011-01-15 16:48:30 +01:00
|
|
|
|
2015-03-10 14:55:54 +01:00
|
|
|
man: offlineimap.1 offlineimapui.7
|
2011-01-15 16:48:30 +01:00
|
|
|
|
2015-03-10 14:55:54 +01:00
|
|
|
offlineimap.1: offlineimap.txt
|
|
|
|
a2x -v -f manpage $?
|
|
|
|
|
|
|
|
offlineimapui.7: offlineimapui.txt
|
|
|
|
a2x -v -f manpage $?
|
2011-01-15 16:48:30 +01:00
|
|
|
|
2012-02-24 11:13:27 +01:00
|
|
|
doc:
|
|
|
|
$(SPHINXBUILD) -b html -d html/doctrees doc-src html
|
2011-04-27 10:37:15 +02:00
|
|
|
|
2015-03-10 05:19:59 +01:00
|
|
|
websitedoc:
|
|
|
|
./website-doc.sh
|
|
|
|
|
2011-01-15 16:48:30 +01:00
|
|
|
clean:
|
|
|
|
$(RM) -f $(HTML_TARGETS)
|
2015-03-10 16:07:00 +01:00
|
|
|
$(RM) -f offlineimap.1
|
|
|
|
$(RM) -f offlineimap.7
|
2012-02-24 11:13:27 +01:00
|
|
|
$(RM) -rf html/*
|
2015-03-10 16:07:00 +01:00
|
|
|
-find ./docs -name '*.html' -exec rm -f {} \;
|
2011-04-27 10:37:15 +02:00
|
|
|
|
2012-02-24 11:13:27 +01:00
|
|
|
.PHONY: clean doc
|