Imported Upstream version 58.1
[platform/upstream/icu.git] / source / config / gmakever.mk
1 ## -*-makefile-*-
2 # Copyright (C) 2016 and later: Unicode, Inc. and others.
3 # License & terms of use: http://www.unicode.org/copyright.html
4 #******************************************************************************
5 #   Copyright (C) 2008-2011, International Business Machines
6 #   Corporation and others.  All Rights Reserved.
7 #******************************************************************************
8 # Make sure we have the right version of Make.
9
10 at_least=3.80
11 ifeq ($(MACHTYPE),i370-ibm-mvs)
12 at_least=3.79.1
13 endif
14 ifeq ($(PLATFORM),OS390)
15 at_least=3.79.1
16 endif
17 ifeq ($(MACHTYPE),powerpc-ibm-os400)
18 at_least=3.77
19 endif
20
21 latest_a=$(firstword $(sort $(MAKE_VERSION) $(at_least)))
22
23 ifneq ($(at_least),$(latest_a))
24 err:
25         @echo "ERROR: $(MAKE_VERSION) - too old, please upgrade to at least $(at_least)"
26         @false
27 else
28 ok:
29         @echo "$(MAKE_VERSION) (we wanted at least $(at_least))"
30 endif
31