GPL-2+ with OpenSSL exception
2006-2018, Eygene A. Ryabinkin & contributors; 2018, Espace LLC/espacenetworks.com; 2002-2019, John Goerzen & contributors; 2008-2016, Riccardo Murri <[email protected]> & contributors; 2009-2017, Stewart Smith and contributors; 2010-2011, Sebastian Spaeth & contributors; 2009-2020, Nicolas Sebrecht
debian/copyright
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 |