[PATCH] doc: Makefile: stop build notmuch-emacs.info when not have emacs

2019-06-11 Thread Doan Tran Cong Danh
Current behavior:
- When build on system without emacs:

./configure --without-emacs
make
make install

`make install` failed with:
> /usr/bin/install: cannot stat 'doc/_build/texinfo/notmuch-emacs.info': No 
> such file or directory

Signed-off-by: Doan Tran Cong Danh 
---
I don't know if this is a _good_ fix for this issue.
This is my quick-and-dirty patch to package notmuch for Void Linux.
 doc/Makefile.local | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/doc/Makefile.local b/doc/Makefile.local
index 719172fe..732d92f5 100644
--- a/doc/Makefile.local
+++ b/doc/Makefile.local
@@ -28,7 +28,10 @@ MAN_GZIP_FILES := $(addsuffix .gz,${MAN_ROFF_FILES})
 MAN1_TEXI := $(patsubst 
$(srcdir)/doc/man1/%.rst,$(DOCBUILDDIR)/texinfo/%.texi,$(MAN1_RST))
 MAN5_TEXI := $(patsubst 
$(srcdir)/doc/man5/%.rst,$(DOCBUILDDIR)/texinfo/%.texi,$(MAN5_RST))
 MAN7_TEXI := $(patsubst 
$(srcdir)/doc/man7/%.rst,$(DOCBUILDDIR)/texinfo/%.texi,$(MAN7_RST))
-INFO_TEXI_FILES := $(MAN1_TEXI) $(MAN5_TEXI) $(MAN7_TEXI) 
$(DOCBUILDDIR)/texinfo/notmuch-emacs.texi
+INFO_TEXI_FILES := $(MAN1_TEXI) $(MAN5_TEXI) $(MAN7_TEXI)
+ifeq ($(WITH_EMACS),1)
+INFO_TEXI_FILES := $(INFO_TEXI_FILES) $(DOCBUILDDIR)/texinfo/notmuch-emacs.texi
+endif
 INFO_INFO_FILES := $(INFO_TEXI_FILES:.texi=.info)
 
 .PHONY: sphinx-html sphinx-texinfo sphinx-info
-- 
2.22.0.rc1.479.gd8fdbe21b5

___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: [PATCH] doc: Makefile: stop build notmuch-emacs.info when not have emacs

2019-06-11 Thread Ralph Seichter
* Doan Tran Cong Danh:

> I don't know if this is a _good_ fix for this issue.

Did you see id:20190611005024.22814-2-da...@tethera.net ?

-Ralph
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: [PATCH] doc: Makefile: stop build notmuch-emacs.info when not have emacs

2019-06-11 Thread Danh Doan
No, I haven't seen it, until now.
I used to follow the list but I stopped using notmuch.
It seems like David has come up with a fix.
I'll check the list first, next time.

On June 11, 2019 3:21:42 PM UTC, Ralph Seichter  wrote:
>* Doan Tran Cong Danh:
>
>> I don't know if this is a _good_ fix for this issue.
>
>Did you see id:20190611005024.22814-2-da...@tethera.net ?
>
>-Ralph
>___
>notmuch mailing list
>notmuch@notmuchmail.org
>https://notmuchmail.org/mailman/listinfo/notmuch

-- 
Danh
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch