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

classic Classic list List threaded Threaded
3 messages Options
Đoàn Trần Công Danh Đoàn Trần Công Danh
Reply | Threaded
Open this post in threaded view
|

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

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 <[hidden email]>
---
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
[hidden email]
https://notmuchmail.org/mailman/listinfo/notmuch
Ralph Seichter-2 Ralph Seichter-2
Reply | Threaded
Open this post in threaded view
|

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

* Doan Tran Cong Danh:

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

Did you see id:[hidden email] ?

-Ralph
_______________________________________________
notmuch mailing list
[hidden email]
https://notmuchmail.org/mailman/listinfo/notmuch
Đoàn Trần Công Danh Đoàn Trần Công Danh
Reply | Threaded
Open this post in threaded view
|

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

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 <[hidden email]> wrote:

>* Doan Tran Cong Danh:
>
>> I don't know if this is a _good_ fix for this issue.
>
>Did you see id:[hidden email] ?
>
>-Ralph
>_______________________________________________
>notmuch mailing list
>[hidden email]
>https://notmuchmail.org/mailman/listinfo/notmuch

--
Danh
_______________________________________________
notmuch mailing list
[hidden email]
https://notmuchmail.org/mailman/listinfo/notmuch