branch: externals/matlab-mode
commit 2accdb61281ab583afe258fe582e94340863b4ba
Author: John Ciolfi <[email protected]>
Commit: John Ciolfi <[email protected]>
Makefile: fix matlab-autoload.el race condition
---
Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 3f593ed8d8..78a57a67cf 100644
--- a/Makefile
+++ b/Makefile
@@ -69,18 +69,18 @@ else
BATCH_UPDATE = -f loaddefs-generate-batch $(abspath $(LOADDEFS)) $(abspath
$(LOADDIRS))
endif
-$(LOADDEFS): | .clean.tstamp
+$(LOADDEFS): $(ELC) | .clean.tstamp
"$(EMACS)" $(EMACSFLAGS) $(addprefix -L ,$(LOADPATH)) $(BATCH_UPDATE)
CHECK_FOR_LEXICAL_BINDING = \
@awk 'NR==1 && !/-*- lexical-binding: t -*-/ { \
print ARGV[1] ":1: error: -*- lexical-binding: t -*- missing";
exit 1}'
-%.elc: %.el | $(LOADDEFS)
+%.elc: %.el
$(CHECK_FOR_LEXICAL_BINDING) $<
"$(EMACS)" $(EMACSFLAGS) $(addprefix -L ,$(LOADPATH)) -f
batch-byte-compile $<
-$(ELC): $(LOADDEFS) $(MAKEFILE_LIST) | .clean.tstamp
+$(ELC): $(MAKEFILE_LIST) | .clean.tstamp
ifneq ($(filter tests all, $(GOALS)),)
# Running tests. Check for existence of MATLAB because it's used by
tests/Makefile for testing