Blame 0009-src-Makefile-Simplify-BUILD_ID-logic.patch

f9c0f6
From 2f3955dbc7fe97e4415231bc0204c5a4a3a9447b Mon Sep 17 00:00:00 2001
f9c0f6
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
f9c0f6
Date: Sun, 14 Jul 2019 09:28:49 +0200
f26de6
Subject: [PATCH 09/29] src/Makefile: Simplify BUILD_ID logic.
f9c0f6
f9c0f6
---
f9c0f6
 src/Makefile | 6 ++----
f9c0f6
 1 file changed, 2 insertions(+), 4 deletions(-)
f9c0f6
f9c0f6
diff --git a/src/Makefile b/src/Makefile
f26de6
index bbf594aa..87f1e823 100644
f9c0f6
--- a/src/Makefile
f9c0f6
+++ b/src/Makefile
f9c0f6
@@ -52,15 +52,13 @@ ifdef USER_CFLAGS
f9c0f6
   $(info USER_CFLAGS: $(USER_CFLAGS))
f9c0f6
 endif
f9c0f6
 
f9c0f6
-ifdef BUILD_ID
f9c0f6
-  $(info BUILD_ID: $(BUILD_ID))
f9c0f6
-else
f9c0f6
+ifndef BUILD_ID
f9c0f6
   BUILD_ID := Git $(shell git rev-parse --short HEAD 2>$(NULLDEV) || svnversion 2>$(NULLDEV))
f9c0f6
   ifneq ($(words $(BUILD_ID)),2)
f9c0f6
     BUILD_ID := N/A
f9c0f6
-    $(info BUILD_ID: N/A)
f9c0f6
   endif
f9c0f6
 endif
f9c0f6
+$(info BUILD_ID: $(BUILD_ID))
f9c0f6
 
f9c0f6
 CFLAGS += -MMD -MP -O3 -I common \
f9c0f6
           -Wall -Wextra -Wno-char-subscripts $(USER_CFLAGS) \
f26de6
-- 
f26de6
2.21.0
f26de6