2009-01-29 06:47:20 +00:00
|
|
|
## -*-makefile-*-
|
2016-06-15 18:58:17 +00:00
|
|
|
# Copyright (C) 2016 and later: Unicode, Inc. and others.
|
|
|
|
# License & terms of use: http://www.unicode.org/copyright.html
|
2009-01-29 06:47:20 +00:00
|
|
|
#******************************************************************************
|
2016-05-31 21:45:07 +00:00
|
|
|
# Copyright (C) 2008-2011, International Business Machines
|
|
|
|
# Corporation and others. All Rights Reserved.
|
2009-01-29 06:47:20 +00:00
|
|
|
#******************************************************************************
|
|
|
|
# Make sure we have the right version of Make.
|
|
|
|
|
|
|
|
at_least=3.80
|
2009-07-18 02:35:27 +00:00
|
|
|
ifeq ($(MACHTYPE),i370-ibm-mvs)
|
2010-03-03 18:57:17 +00:00
|
|
|
at_least=3.79.1
|
2009-07-18 02:35:27 +00:00
|
|
|
endif
|
2010-03-03 18:57:17 +00:00
|
|
|
ifeq ($(PLATFORM),OS390)
|
|
|
|
at_least=3.79.1
|
|
|
|
endif
|
2011-09-15 19:34:17 +00:00
|
|
|
ifeq ($(MACHTYPE),powerpc-ibm-os400)
|
|
|
|
at_least=3.77
|
|
|
|
endif
|
2009-07-18 02:35:27 +00:00
|
|
|
|
2009-01-29 06:47:20 +00:00
|
|
|
latest_a=$(firstword $(sort $(MAKE_VERSION) $(at_least)))
|
|
|
|
|
|
|
|
ifneq ($(at_least),$(latest_a))
|
|
|
|
err:
|
|
|
|
@echo "ERROR: $(MAKE_VERSION) - too old, please upgrade to at least $(at_least)"
|
|
|
|
@false
|
|
|
|
else
|
|
|
|
ok:
|
|
|
|
@echo "$(MAKE_VERSION) (we wanted at least $(at_least))"
|
|
|
|
endif
|
|
|
|
|