From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx> "make clean" should not fail because libtraceevent is not installed on the system. Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx> --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.29.2