summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index a160e3b..458f137 100644
--- a/Makefile
+++ b/Makefile
@@ -7,14 +7,17 @@
it: all
+$(shell test -r config.mak)
+ifneq ($(.SHELLSTATUS),0)
+$(error Missing config.mak; please use ./configure first)
+endif
+
make_need := 3.81
ifeq "" "$(strip $(filter $(make_need), $(firstword $(sort $(make_need) $(MAKE_VERSION)))))"
-fail := $(error Your make ($(MAKE_VERSION)) is too old. You need $(make_need) or newer)
+$(error Your make ($(MAKE_VERSION)) is too old. You need $(make_need) or newer)
endif
-CC = $(error Please use ./configure first)
-
--include config.mak
+include config.mak
include package/deps.mak
version_m := $(basename $(version))