summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNigel Croxon <ncroxon@redhat.com>2017-11-06 09:06:31 -0500
committerNigel Croxon <ncroxon@redhat.com>2017-11-06 09:06:31 -0500
commit15bcddc996694c904b3848c83031da5cd3a4719e (patch)
treed6ee07ff03ee7ba14e76a7d9d82e711d9dfcff75 /Makefile
parent08a46615c70f5af195443fcf5d0fd425fa329096 (diff)
downloadgnu-efi-15bcddc996694c904b3848c83031da5cd3a4719e.tar.gz
Stripped diff for makefile
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 646de6f..37592bd 100644
--- a/Makefile
+++ b/Makefile
@@ -36,7 +36,8 @@
VERSION = 3.0.6
-SRCDIR = $(shell pwd)
+MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
+SRCDIR = $(dir $(MKFILE_PATH))
VPATH = $(SRCDIR)