This patch allows one to run make outside the source tree with make -f <makefile>. Signed-off-by: wolfra <wolfra@users.sf.net> Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
@@ -36,7 +36,8 @@
VERSION = 3.0.6
-SRCDIR = $(shell pwd)
+MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
+SRCDIR = $(dir $(MKFILE_PATH))
VPATH = $(SRCDIR)