diff options
author | Evan Lloyd <evan.lloyd@arm.com> | 2015-12-02 18:41:22 +0000 |
---|---|---|
committer | Evan Lloyd <evan.lloyd@arm.com> | 2016-04-01 12:33:09 +0100 |
commit | 1670d9df4d572bd6836ce2e74ff75cb7fd63cd54 (patch) | |
tree | ac930c2bfcca65480d4a0ff8a337c9f226b44cb8 | |
parent | f1477d4ad879a1244b782b27c1c653ca9f35cc7a (diff) |
Make:Diagnostic fail if no eval
To help diagnose make problems, we report an error if the make
program used does not provide the $(eval ) make functionality.
This will detect early versions of GNU make and other make programs.
Change-Id: I0ebb0f63694cf0b04eaeb7ea1e9e172fb9770ce0
-rw-r--r-- | make_helpers/build_macros.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/make_helpers/build_macros.mk b/make_helpers/build_macros.mk index 274f365a..42e11b3f 100644 --- a/make_helpers/build_macros.mk +++ b/make_helpers/build_macros.mk @@ -28,6 +28,12 @@ # POSSIBILITY OF SUCH DAMAGE. # +# Report an error if the eval make function is not available. +$(eval eval_available := T) +ifneq (${eval_available},T) + $(error This makefile only works with a Make program that supports $$(eval)) +endif + # Some utility macros for manipulating awkward (whitespace) characters. blank := space :=${blank} ${blank} |