diff mbox series

[2/2] libtracefs: Do not fail make on clean target

Message ID 20201216215804.585750593@goodmis.org (mailing list archive)
State Accepted
Commit 69176de2396170dc97f23beba0fd216c0b53c9bf
Headers show
Series libtracefs: Remove gui references and do not fail make clean | expand

Commit Message

Steven Rostedt Dec. 16, 2020, 9:57 p.m. UTC
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

"make clean" should not fail because libtraceevent is not installed on the
system.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
 Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index daaf347966b9..e32bcaee3cba 100644
--- a/Makefile
+++ b/Makefile
@@ -65,8 +65,10 @@  pkgconfig_dir ?= $(word 1,$(shell $(PKG_CONFIG) 		\
 LIBTRACEEVENT_INCLUDES = $(shell $(PKG_CONFIG) --cflags libtraceevent)
 LIBTRACEEVENT_LIBS = $(shell $(PKG_CONFIG) --libs libtraceevent)
 
-ifeq ("$(LIBTRACEEVENT_INCLUDES)","")
-$(error libtraceevent.so not installed)
+ifneq ($(MAKECMDGOALS),clean)
+ ifeq ("$(LIBTRACEEVENT_INCLUDES)","")
+   $(error libtraceevent.so not installed)
+ endif
 endif
 
 etcdir ?= /etc