summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Protzenko2022-09-27 14:29:17 -0700
committerJonathan Protzenko2022-09-27 14:29:17 -0700
commita1e24b4327d96d744d0b2007cb9fe92766857dd7 (patch)
tree6f5634174e346ab3b7f85c1bedaf7b41f1d440cd
parentdd75894c85bbaa5dc6aa54d39980e160e5b7777f (diff)
Incorrect assumptions, incorrect recursive make
Diffstat (limited to '')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index db308fbd..e92b2b9b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,8 @@
+ifeq (3.81,$(MAKE_VERSION))
+ $(error You seem to be using the OSX antiquated Make version. Hint: brew \
+ install make, then invoke gmake instead of make)
+endif
+
all: build-test-verify
CHARON_HOME = ../charon
@@ -37,7 +42,7 @@ test: build trans-no_nested_borrows trans-paper \
# Verify the F* files generated by the translation
.PHONY: verify
verify: build test
- cd tests && make all
+ cd tests && $(MAKE) all
# Reformat the project
.PHONY: format
@@ -72,7 +77,7 @@ trans-nll-betree_main: SUBDIR:=betree
# vary with the test files.
.PHONY: gen-llbc-%
gen-llbc-%: build
- cd $(CHARON_HOME) && make test-$*
+ cd $(CHARON_HOME) && $(MAKE) test-$*
# Generic rule to test the translation of an LLBC file.
# Note that the non-linear lifetime files are generated in the tests-nll subdirectory.