2 docdir ?
= $(prefix)/share
/doc
/git-cola
3 htmldir ?
= $(docdir
)/html
4 mandir ?
= $(prefix)/share
/man
/man1
12 # You can set these variables from the command line.
14 SPHINXBUILD
= sphinx-build
18 PAPEROPT_a4
= -D latex_paper_size
=a4
19 PAPEROPT_letter
= -D latex_paper_size
=letter
20 ALLSPHINXOPTS
= -d _build
/doctrees
$(PAPEROPT_
$(PAPER
)) $(SPHINXOPTS
) .
22 .PHONY
: all help
clean html man dirhtml pickle json
23 .PHONY
: htmlhelp qthelp latex changes linkcheck doctest
24 .PHONY
: install install-files install-html install-man
26 # The default target of this makefile is...
30 @echo
"Please use \`make <target>' where <target> is one of"
31 @echo
" html to make standalone HTML files"
32 @echo
" man to make manual pages"
33 @echo
" dirhtml to make HTML files named index.html in directories"
34 @echo
" pickle to make pickle files"
35 @echo
" json to make JSON files"
36 @echo
" htmlhelp to make HTML files and a HTML help project"
37 @echo
" qthelp to make HTML files and a qthelp project"
38 @echo
" latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
39 @echo
" changes to make an overview of all changed/added/deprecated items"
40 @echo
" linkcheck to check all external links for integrity"
41 @echo
" doctest to run all doctests embedded in the documentation (if enabled)"
44 -rm -rf _build
/doctrees _build
/man _build
/html
/*
47 $(SPHINXBUILD
) -b html
$(ALLSPHINXOPTS
) _build
/html
50 $(SPHINXBUILD
) -b man
$(ALLSPHINXOPTS
) _build
/man
53 $(SPHINXBUILD
) -b dirhtml
$(ALLSPHINXOPTS
) _build
/dirhtml
56 $(SPHINXBUILD
) -b pickle
$(ALLSPHINXOPTS
) _build
/pickle
59 $(SPHINXBUILD
) -b json
$(ALLSPHINXOPTS
) _build
/json
62 $(SPHINXBUILD
) -b htmlhelp
$(ALLSPHINXOPTS
) _build
/htmlhelp
65 $(SPHINXBUILD
) -b qthelp
$(ALLSPHINXOPTS
) _build
/qthelp
68 $(SPHINXBUILD
) -b latex
$(ALLSPHINXOPTS
) _build
/latex
71 $(SPHINXBUILD
) -b changes
$(ALLSPHINXOPTS
) _build
/changes
74 $(SPHINXBUILD
) -b linkcheck
$(ALLSPHINXOPTS
) _build
/linkcheck
77 $(SPHINXBUILD
) -b doctest
$(ALLSPHINXOPTS
) _build
/doctest
79 install: install-files install-html install-man
82 $(MKDIR_P
) $(DESTDIR
)$(docdir
)
83 $(INSTALL
) -m
644 *.html
$(DESTDIR
)$(docdir
)
84 $(INSTALL
) -m
644 *.rst
$(DESTDIR
)$(docdir
)
86 install-html
: install-files html
87 $(MKDIR_P
) $(DESTDIR
)$(htmldir
)
88 $(RSYNC
) -r
--delete
--delete-excluded
--exclude
=.buildinfo
--exclude
=.gitignore _build
/html
/ $(DESTDIR
)$(htmldir
)/
91 $(MKDIR_P
) $(DESTDIR
)$(mandir)
92 $(INSTALL
) -m
644 _build
/man
/git-cola
.1 $(DESTDIR
)$(mandir)
93 $(INSTALL
) -m
644 _build
/man
/git-dag
.1 $(DESTDIR
)$(mandir)