unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 1/2] fix compilation without emacs
@ 2013-11-19  5:10 Tomi Valkeinen
  2013-11-19  5:10 ` [PATCH 2/2] lib: fix error handling Tomi Valkeinen
  2013-11-19 10:43 ` [PATCH 1/2] fix compilation without emacs Tomi Ollila
  0 siblings, 2 replies; 7+ messages in thread
From: Tomi Valkeinen @ 2013-11-19  5:10 UTC (permalink / raw)
  To: notmuch

If emacs is not installed, the following error is printed while
compiling:

/bin/sh: 1: emacs: not found

This patch fixes the build.

It might be better to exclude the whole emacs directory from build when
compiling without emacs, but that's a bigger change.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
---
 emacs/Makefile.local | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emacs/Makefile.local b/emacs/Makefile.local
index 92467a3..0fcf64c 100644
--- a/emacs/Makefile.local
+++ b/emacs/Makefile.local
@@ -24,6 +24,7 @@ emacs_images := \
 
 emacs_bytecode = $(emacs_sources:.el=.elc)
 
+ifeq ($(WITH_EMACS),1)
 # Because of defmacro's and defsubst's, we have to account for load
 # dependencies between Elisp files when byte compiling.  Otherwise,
 # the byte compiler may load an old .elc file when processing a
@@ -39,7 +40,6 @@ CLEAN+=$(dir)/.eldeps $(dir)/.eldeps.tmp
 %.elc: %.el $(global_deps)
 	$(call quiet,EMACS) --directory emacs -batch -f batch-byte-compile $<
 
-ifeq ($(WITH_EMACS),1)
 ifeq ($(HAVE_EMACS),1)
 all: $(emacs_bytecode)
 endif
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-01-19  0:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-19  5:10 [PATCH 1/2] fix compilation without emacs Tomi Valkeinen
2013-11-19  5:10 ` [PATCH 2/2] lib: fix error handling Tomi Valkeinen
2014-01-13 21:15   ` Tomi Ollila
2014-01-15 13:45     ` David Bremner
2014-01-19  0:09   ` David Bremner
2013-11-19 10:43 ` [PATCH 1/2] fix compilation without emacs Tomi Ollila
2013-11-19 11:02   ` Tomi Valkeinen

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).