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