unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob cca891a81c9f15ebe23c0a1889e8243486986a93 1380 bytes (raw)
name: info/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
 
# -*- makefile -*-

dir := info

man_texi :=  $(dir)/notmuch.texi $(dir)/notmuch-search-terms.texi
man_info := $(man_texi:.texi=.info)
man_entry := $(man_texi:.texi=.entry)

texi_sources :=  $(dir)/notmuch-emacs.texi
emacs_info := $(texi_sources:.texi=.info)

info := $(emacs_info) $(man_info)

ifeq ($(HAVE_MAKEINFO),1)
all: $(info)
endif

ifeq ($(HAVE_INSTALLINFO),1)
install: install-info
endif

%.entry: ../pod/%.pod
	printf "@dircategory Notmuch\n@direntry\n" > $@
	printf "* %s: (%s). " $(*F) $(*F) >> $@
	podselect -section Name $< | \
	  perl -n -e  's/notmuch.* - (.*)/\u\L$$1/ && print' >> $@
	printf "@end direntry\n" >> $@

%.info: %.texi %.entry
	makeinfo --no-split -o $@ $<

$(dir)/notmuch-emacs.info: $(dir)/notmuch-emacs.texi $(dir)/version.texi

%.texi: ../pod/%.pod
	# a nasty hack, but the nicer ways seem to have bugs.
	pod2texi  $< | \
	   sed 's/@node Top/@include $(*F).entry\n@node Top/' > $@

.PHONY: $(dir)/version.texi
$(dir)/version.texi: version
	printf "@set VERSION ${VERSION}\n" > $@

.PHONY: install-info
install-info: ${info}
	mkdir -p "$(DESTDIR)$(INFODIR)"
	install -m0644 $(info) "$(DESTDIR)$(INFODIR)"
	install-info --section=Notmuch --info-dir=${DESTDIR}${INFODIR} $(emacs_info)
	for ifile in $(man_info); do \
	    install-info --info-dir=${DESTDIR}${INFODIR} $${ifile}; \
	done

CLEAN := $(CLEAN) $(info) $(man_entry) $(dir)/version.texi

debug log:

solving cca891a ...
found cca891a in https://yhetil.org/notmuch/1366852752-3584-3-git-send-email-david@tethera.net/ ||
	https://yhetil.org/notmuch/1388921950-5017-3-git-send-email-david@tethera.net/
found 55e9740 in https://yhetil.org/notmuch/1366852752-3584-2-git-send-email-david@tethera.net/ ||
	https://yhetil.org/notmuch/1388921950-5017-2-git-send-email-david@tethera.net/ ||
	https://yhetil.org/notmuch/1389791332-21719-2-git-send-email-david@tethera.net/

applying [1/2] https://yhetil.org/notmuch/1366852752-3584-2-git-send-email-david@tethera.net/
diff --git a/info/Makefile.local b/info/Makefile.local
new file mode 100644
index 0000000..55e9740

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

skipping https://yhetil.org/notmuch/1388921950-5017-2-git-send-email-david@tethera.net/ for 55e9740
skipping https://yhetil.org/notmuch/1389791332-21719-2-git-send-email-david@tethera.net/ for 55e9740
index at:
100644 55e97402408db4ed49f004e96c07fde21a999195	info/Makefile.local

applying [2/2] https://yhetil.org/notmuch/1366852752-3584-3-git-send-email-david@tethera.net/
diff --git a/info/Makefile.local b/info/Makefile.local
index 55e9740..cca891a 100644

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

skipping https://yhetil.org/notmuch/1388921950-5017-3-git-send-email-david@tethera.net/ for cca891a
index at:
100644 cca891a81c9f15ebe23c0a1889e8243486986a93	info/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).