Debian Codegraph @

docs/Makefile

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 # This program is free software under the terms of the GNU General Public
2 # License. See the COPYING file which must come with this package.
3
4 SOURCES = $(wildcard *.rst)
5 HTML_TARGETS = $(patsubst %.rst,%.html,$(SOURCES))
6
7 RM = rm
8 RST2HTML=`type rst2html >/dev/null 2>&1 && echo rst2html || echo rst2html.py`
9 RST2MAN=`type rst2man >/dev/null 2>&1 && echo rst2man || echo rst2man.py`
10 SPHINXBUILD = sphinx-build
11
12 docs: man api
13
14 html: $(HTML_TARGETS)
15
16 $(HTML_TARGETS): %.html : %.rst
17 $(RST2HTML) $? $@
18
19 manhtml: offlineimap.html offlineimapui.html
20
21 offlineimap.html: offlineimap.txt offlineimap.known_issues.txt
22 a2x -v -d manpage -D manhtml -f xhtml $<
23
24 offlineimapui.html: offlineimapui.txt
25 a2x -v -d manpage -D manhtml -f xhtml $<
26
27
28 man: offlineimap.1 offlineimapui.7
29
30 offlineimap.1: offlineimap.txt offlineimap.known_issues.txt
31 a2x -v -d manpage -f manpage $<
32
33 offlineimapui.7: offlineimapui.txt
34 a2x -v -d manpage -f manpage $<
35
36 api:
37 $(SPHINXBUILD) -b html -d html/doctrees doc-src html
38
39 websitedoc:
40 ./website-doc.sh releases
41 ./website-doc.sh api
42 ./website-doc.sh html
43 ./website-doc.sh contrib
44
45 clean:
46 $(RM) -f $(HTML_TARGETS)
47 $(RM) -f offlineimap.1
48 $(RM) -f offlineimap.7
49 $(RM) -f manhtml/*
50 $(RM) -rf html/*
51 -find . -name '*.html' -exec rm -f {} \;
52
53 .PHONY: clean doc