NewMakefile.gmk

changeset 867
2cc1a52d37ef
parent 865
4293401d683b
equal deleted inserted replaced
866:269497597620 867:2cc1a52d37ef
1 # 1 #
2 # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 2 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 # 4 #
5 # This code is free software; you can redistribute it and/or modify it 5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as 6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this 7 # published by the Free Software Foundation. Oracle designates this
34 # The shell code below will be executed on /usr/ccs/bin/make on Solaris, but not in GNU make. 34 # The shell code below will be executed on /usr/ccs/bin/make on Solaris, but not in GNU make.
35 # /usr/ccs/bin/make lacks basically every other flow control mechanism. 35 # /usr/ccs/bin/make lacks basically every other flow control mechanism.
36 TEST_FOR_NON_GNUMAKE:sh=echo You are not using GNU make/gmake, this is a requirement. Check your path. 1>&2 && exit 1 36 TEST_FOR_NON_GNUMAKE:sh=echo You are not using GNU make/gmake, this is a requirement. Check your path. 1>&2 && exit 1
37 37
38 # Assume we have GNU make, but check version. 38 # Assume we have GNU make, but check version.
39 ifeq ($(strip $(foreach v, 3.81 3.82 4.%, $(filter $v, $(MAKE_VERSION)))), ) 39 ifeq ($(strip $(foreach v, 3.81% 3.82% 4.%, $(filter $v, $(MAKE_VERSION)))), )
40 $(error This version of GNU Make is too low ($(MAKE_VERSION)). Check your path, or upgrade to 3.81 or newer.) 40 $(error This version of GNU Make is too low ($(MAKE_VERSION)). Check your path, or upgrade to 3.81 or newer.)
41 endif 41 endif
42 42
43 # Locate this Makefile 43 # Locate this Makefile
44 ifeq ($(filter /%,$(lastword $(MAKEFILE_LIST))),) 44 ifeq ($(filter /%,$(lastword $(MAKEFILE_LIST))),)

mercurial