2009-01-29 06:47:20 +00:00
|
|
|
## -*-makefile-*-
|
|
|
|
#******************************************************************************
|
2010-03-03 18:57:17 +00:00
|
|
|
# Copyright (C) 2008-2010, International Business Machines
|
2009-01-29 06:47:20 +00:00
|
|
|
# Corporation and others. All Rights Reserved.
|
|
|
|
#******************************************************************************
|
|
|
|
# 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
|
|
|
|
|
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))"
|
|
|
|
@true
|
|
|
|
endif
|
|
|
|
|