summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2009-02-28 11:33:58 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2009-02-28 11:33:58 (GMT)
commitd93044dd06a7c753ef07c12b442a6bca7df1a100 (patch)
tree55b5a5274955c7cf159f63a50276ad2311bf0c6b /Makefile
parent8942950a782f86fa523c606ac735d083f2996d07 (diff)
downloadmxe-d93044dd06a7c753ef07c12b442a6bca7df1a100.zip
mxe-d93044dd06a7c753ef07c12b442a6bca7df1a100.tar.gz
mxe-d93044dd06a7c753ef07c12b442a6bca7df1a100.tar.bz2
improved portability of the Makefile by avoiding $(lastword ...)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1c993d2..cb65362 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ VERSION := 2.3
PREFIX := $(PWD)/usr
PKG_DIR := $(PWD)/pkg
TMP_DIR = $(PWD)/tmp-$(1)
-TOP_DIR := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
+TOP_DIR := $(patsubst %/,%,$(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))))
PATH := $(PREFIX)/bin:$(PATH)
SHELL := bash
SED := $(shell gsed --version >/dev/null 2>&1 && echo g)sed