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 (,$(findstring 3.81,$(MAKE_VERSION))) |
39 ifeq ($(strip $(foreach v, 3.81 3.82 4.%, $(filter $v, $(MAKE_VERSION)))), ) |
40 ifeq (,$(findstring 3.82,$(MAKE_VERSION))) |
40 $(error This version of GNU Make is too low ($(MAKE_VERSION)). Check your path, or upgrade to 3.81 or newer.) |
41 $(error This version of GNU Make is too low ($(MAKE_VERSION)). Check your path, or upgrade to 3.81 or newer.) |
|
42 endif |
|
43 endif |
41 endif |
44 |
42 |
45 # Locate this Makefile |
43 # Locate this Makefile |
46 ifeq ($(filter /%,$(lastword $(MAKEFILE_LIST))),) |
44 ifeq ($(filter /%,$(lastword $(MAKEFILE_LIST))),) |
47 makefile_path:=$(CURDIR)/$(lastword $(MAKEFILE_LIST)) |
45 makefile_path:=$(CURDIR)/$(lastword $(MAKEFILE_LIST)) |