From 8b7fbcde14b3e421a3fcd2d15b9746bb9e41ef43 Mon Sep 17 00:00:00 2001 From: ppisa Date: Tue, 6 Apr 2004 08:17:58 +0000 Subject: [PATCH] Added check to complain nicely, if bad make version is present. --- Makefile.rules | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile.rules b/Makefile.rules index e6a7aea..f043d71 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -143,8 +143,8 @@ USER_OBJS_DIR = $(USER_BUILD_DIR)/$(RELATIVE_DIR) KERN_OBJS_DIR = $(KERN_BUILD_DIR)/$(RELATIVE_DIR) .PHONY: default dep subdirs clean cleandepend default-config -.PHONY: check-dir include-pass library-pass binary-pass utils-pass kernel-lib-pass -.PHONY: kernel-pass default-config-pass +.PHONY: check-make-ver check-dir include-pass library-pass binary-pass utils-pass +.PHONY: kernel-lib-pass kernel-pass default-config-pass .PHONY: check-dir-local include-pass-local library-pass-local binary-pass-local .PHONY: utils-pass-local kernel-lib-pass-local kernel-pass-local default-config-pass-local @@ -159,7 +159,7 @@ kernel-pass: kernel-lib-pass OMK_SERIALIZE_INCLUDED = y endif -default: check-dir include-pass library-pass binary-pass utils-pass kernel-lib-pass kernel-pass +default: check-make-ver check-dir include-pass library-pass binary-pass utils-pass kernel-lib-pass kernel-pass #===================================================================== @@ -189,6 +189,13 @@ $(LOCAL_CONFIG_H) : $(wildcard $(CONFIG_FILE)) $(wildcard $(CONFIG_FILE)-default endif +check-make-ver: + @GOOD_MAKE_VERSION=`echo $(MAKE_VERSION) | sed -n -e 's/^[4-9]\..*\|^3\.9[0-9].*\|^3\.8[1-9].*/y/p'` ; \ + if [ x$$GOOD_MAKE_VERSION != xy ] ; then \ + echo "Your make program version is too old and does not support OMK system." ; \ + echo "Please update to make program 3.81beta1 or newer." ; exit 1 ; \ + fi + #===================================================================== # User-space rules and templates to compile programs, libraries etc. -- 2.39.2