diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2009-02-28 11:33:58 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2009-02-28 11:33:58 (GMT) |
commit | d93044dd06a7c753ef07c12b442a6bca7df1a100 (patch) | |
tree | 55b5a5274955c7cf159f63a50276ad2311bf0c6b /Makefile | |
parent | 8942950a782f86fa523c606ac735d083f2996d07 (diff) | |
download | mxe-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-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |