unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 5be49dc1a0fed9f9a02462d71639e1bb22135aa5 1605 bytes (raw)
name: doc/Makefile.local 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
 
# -*- makefile -*-

dir := doc

# You can set these variables from the command line.
SPHINXOPTS    := -q -c $(dir)
SPHINXBUILD   = sphinx-build
DOCBUILDDIR      := $(dir)/_build

prerst2man := python $(dir)/prerst2man.py
mkdocdeps := python $(dir)/mkdocdeps.py

# Internal variables.
ALLSPHINXOPTS   := -d $(DOCBUILDDIR)/doctrees $(SPHINXOPTS) $(dir)

.PHONY: sphinx-html sphinx-man sphinx-texinfo sphinx-info
.PHONY: rst2man

.PHONY: install-man build-man

%.gz: %
	rm -f $@ && gzip --stdout $^ > $@

sphinx-html:
	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(DOCBUILDDIR)/html

sphinx-man:
	$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(DOCBUILDDIR)/man

sphinx-texinfo:
	$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(DOCBUILDDIR)/texinfo

sphinx-info: sphinx-texinfo
	make -C $(DOCBUILDDIR)/texinfo info

# fallback target in case sphinx not installed
rst2man:
	$(prerst2man) $(DOCBUILDDIR)/.. $(DOCBUILDDIR)/man

-include $(dir)/docdeps.mk

MAN_GZIP_FILES := $(addsuffix .gz,${MAN_ROFF_FILES})

${MAN_ROFF_FILES} : sphinx-man

build-man: ${MAN_GZIP_FILES}

install-man: build-man
	mkdir -p "$(DESTDIR)$(mandir)/man1"
	mkdir -p "$(DESTDIR)$(mandir)/man5"
	mkdir -p "$(DESTDIR)$(mandir)/man7"
	install -m0644 $(DOCBUILDDIR)/man/*.1.gz $(DESTDIR)/$(mandir)/man1
	install -m0644 $(DOCBUILDDIR)/man/*.5.gz $(DESTDIR)/$(mandir)/man5
	install -m0644 $(DOCBUILDDIR)/man/*.7.gz $(DESTDIR)/$(mandir)/man7
	cd $(DESTDIR)/$(mandir)/man1 && ln -sf notmuch.1.gz notmuch-setup.1.gz


$(dir)/docdeps.mk: $(dir)/conf.py $(dir)/mkdocdeps.py
	$(mkdocdeps) $< $(DOCBUILDDIR) $@

CLEAN := $(CLEAN) $(DOCBUILDDIR) $(dir)/docdeps.mk

debug log:

solving 5be49dc ...
found 5be49dc in https://yhetil.org/notmuch/1394449633-14737-1-git-send-email-david@tethera.net/
found fd64f70 in https://yhetil.org/notmuch.git/
preparing index
index prepared:
100644 fd64f7081daf0361e34856c1a1a79b8ec48ac411	doc/Makefile.local

applying [1/1] https://yhetil.org/notmuch/1394449633-14737-1-git-send-email-david@tethera.net/
diff --git a/doc/Makefile.local b/doc/Makefile.local
index fd64f70..5be49dc 100644

Checking patch doc/Makefile.local...
Applied patch doc/Makefile.local cleanly.

index at:
100644 5be49dc1a0fed9f9a02462d71639e1bb22135aa5	doc/Makefile.local

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).