From 2ea36ebf726bb3a29ff8c6b12a6ff3df9020859f Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 6 Nov 2023 13:57:12 +0000 Subject: make distclean shouldn't error out when no config.mak Signed-off-by: Laurent Bercot --- Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ea0f133..9608d0a 100644 --- a/Makefile +++ b/Makefile @@ -7,16 +7,14 @@ it: all -ifeq ($(realpath config.mak),) -$(error Missing config.mak; please use ./configure first) -endif - make_need := 3.81 ifeq "" "$(strip $(filter $(make_need), $(firstword $(sort $(make_need) $(MAKE_VERSION)))))" $(error Your make ($(MAKE_VERSION)) is too old. You need $(make_need) or newer) endif -include config.mak +CC = $(error Please use ./configure first) + +-include config.mak include package/deps.mak version_m := $(basename $(version)) -- cgit v1.2.3