d1fe48
From 15bcddc996694c904b3848c83031da5cd3a4719e Mon Sep 17 00:00:00 2001
d1fe48
From: Nigel Croxon <ncroxon@redhat.com>
d1fe48
Date: Mon, 6 Nov 2017 09:06:31 -0500
d1fe48
Subject: [PATCH 03/25] Stripped diff for makefile
d1fe48
d1fe48
This patch allows one to run make outside the source tree
d1fe48
with make -f <makefile>.
d1fe48
d1fe48
Signed-off-by: wolfra <wolfra@users.sf.net>
d1fe48
Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
d1fe48
---
d1fe48
 Makefile | 3 ++-
d1fe48
 1 file changed, 2 insertions(+), 1 deletion(-)
d1fe48
d1fe48
diff --git a/Makefile b/Makefile
d1fe48
index 646de6f7044..37592bd6930 100644
d1fe48
--- a/Makefile
d1fe48
+++ b/Makefile
d1fe48
@@ -36,7 +36,8 @@
d1fe48
 
d1fe48
 VERSION = 3.0.6
d1fe48
 
d1fe48
-SRCDIR = $(shell pwd)
d1fe48
+MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
d1fe48
+SRCDIR = $(dir $(MKFILE_PATH))
d1fe48
 
d1fe48
 VPATH = $(SRCDIR)
d1fe48
 
d1fe48
-- 
d1fe48
2.15.0
d1fe48