aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.menhir
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.menhir')
-rw-r--r--Makefile.menhir6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.menhir b/Makefile.menhir
index e845352d..bbfc2495 100644
--- a/Makefile.menhir
+++ b/Makefile.menhir
@@ -64,11 +64,13 @@ endif
# can instead ask ocamlfind where Menhir's library was installed. Otherwise,
# Menhir answers directly with a "-I ..." directive, which we use.
+ifndef $(MENHIR_INCLUDES)
+
ifeq ($(MENHIR_TABLE),true)
MENHIR_SUGGESTION = $(MENHIR) $(MENHIR_MODE) --suggest-comp-flags
- MENHIR_INCLUDES ?= $(shell \
+ MENHIR_INCLUDES := $(shell \
if $(MENHIR_SUGGESTION) | grep -e "-package" >/dev/null ; then \
echo "-I `ocamlfind query menhirLib`" ; \
else \
@@ -80,3 +82,5 @@ else
MENHIR_INCLUDES =
endif
+
+endif