improved portability of the Makefile by avoiding $(lastword ...)

This commit is contained in:
Volker Grabsch 2009-02-28 12:33:58 +01:00
parent 8942950a78
commit d93044dd06
1 changed files with 1 additions and 1 deletions

View File

@ -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