summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-06-09 13:32:27 +0000
committerLaurent Bercot <ska@appnovation.com>2023-06-09 13:32:27 +0000
commitc005b541bf9d54327ff860aad88367b854bae3d8 (patch)
tree6af88b1dd6637084b9e20e0c62b764656b9deaf4 /Makefile
parent4af2899ac7ed0da49db7a6e94914fee391212f92 (diff)
downloadskalibs-c005b541bf9d54327ff860aad88367b854bae3d8.tar.xz
Add devino, refactor openwrite(v)nclose
Signed-off-by: Laurent Bercot <ska@appnovation.com>
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))