diff options
Diffstat (limited to 'build/bootstrap.make')
-rw-r--r-- | build/bootstrap.make | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/build/bootstrap.make b/build/bootstrap.make index f40850f..4891152 100644 --- a/build/bootstrap.make +++ b/build/bootstrap.make @@ -3,8 +3,6 @@ # copyright : Copyright (c) 2004-2011 Code Synthesis Tools CC # license : GNU GPL v2; see accompanying LICENSE file - - # First time bootstrap.make is read # ifndef %makefile% @@ -61,10 +59,14 @@ export MAKE # also it will be consistent. # -# By convention, the makefile name is the third last word from the end. +# By convention, the makefile name is the second or third last word from +# the end. If it is the third, then the second one should be end with +# bootstrap.make # %makefile% := $(subst $(lastword $(MAKEFILE_LIST)),,$(MAKEFILE_LIST)) +ifneq ($(filter %bootstrap.make,$(lastword $(%makefile%))),) %makefile% := $(subst $(lastword $(%makefile%)),,$(%makefile%)) +endif %makefile% := $(abspath $(lastword $(%makefile%))) %makefile_realpath% := $(realpath $(%makefile%)) |