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
| | # -*- makefile -*-
dir := info
texi_sources := $(dir)/notmuch-emacs.texi
emacs_info := $(texi_sources:.texi=.info)
info := $(emacs_info)
ifeq ($(HAVE_MAKEINFO),1)
all: $(info)
endif
ifeq ($(HAVE_INSTALLINFO),1)
install: install-info
endif
%.info: %.texi
makeinfo --no-split -o $@ $<
$(dir)/notmuch-emacs.info: $(dir)/notmuch-emacs.texi $(dir)/version.texi
.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)
CLEAN := $(CLEAN) $(info)
|