Blame SOURCES/0003-Stripped-diff-for-makefile.patch

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