Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
michael@0 | 1 | ## -*-makefile-*- |
michael@0 | 2 | #****************************************************************************** |
michael@0 | 3 | # Copyright (C) 2008-2011, International Business Machines |
michael@0 | 4 | # Corporation and others. All Rights Reserved. |
michael@0 | 5 | #****************************************************************************** |
michael@0 | 6 | # Make sure we have the right version of Make. |
michael@0 | 7 | |
michael@0 | 8 | at_least=3.80 |
michael@0 | 9 | ifeq ($(MACHTYPE),i370-ibm-mvs) |
michael@0 | 10 | at_least=3.79.1 |
michael@0 | 11 | endif |
michael@0 | 12 | ifeq ($(PLATFORM),OS390) |
michael@0 | 13 | at_least=3.79.1 |
michael@0 | 14 | endif |
michael@0 | 15 | ifeq ($(MACHTYPE),powerpc-ibm-os400) |
michael@0 | 16 | at_least=3.77 |
michael@0 | 17 | endif |
michael@0 | 18 | |
michael@0 | 19 | latest_a=$(firstword $(sort $(MAKE_VERSION) $(at_least))) |
michael@0 | 20 | |
michael@0 | 21 | ifneq ($(at_least),$(latest_a)) |
michael@0 | 22 | err: |
michael@0 | 23 | @echo "ERROR: $(MAKE_VERSION) - too old, please upgrade to at least $(at_least)" |
michael@0 | 24 | @false |
michael@0 | 25 | else |
michael@0 | 26 | ok: |
michael@0 | 27 | @echo "$(MAKE_VERSION) (we wanted at least $(at_least))" |
michael@0 | 28 | endif |
michael@0 | 29 |