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

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