diff mbox series

[1/6] libtracefs: Fix make sqlhist when built again

Message ID 20220606192953.334315-2-rostedt@goodmis.org (mailing list archive)
State Accepted
Commit 45ee277e72bbe625a67520595d5044527ea60a45
Headers show
Series libtracefs: Fixes for sqlhist | expand

Commit Message

Steven Rostedt June 6, 2022, 7:29 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

"make sqlhist" currently only works after a "make clean". That is because
the sqlhist.c is extracted from the man page and left there after the
first build. On the second build, the sqlhist.c still exists and the
target for "sqlhist" runs the default build as it has nothing to build
with, which fails to build as the default does not work with it.

Add the sqlhist target to .PHONY to tell make that it is not a real target
and it should not try to build it using the default methods.

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

Patch

diff --git a/samples/Makefile b/samples/Makefile
index 97a570d6c956..c1392fbbb12b 100644
--- a/samples/Makefile
+++ b/samples/Makefile
@@ -67,3 +67,5 @@  $(bdir)/%.o: $(bdir)/%.c
 
 clean:
 	$(Q)$(call do_clean,$(sdir)/* $(bdir)/sqlhist.c $(bdir)/sqlhist.o)
+
+.PHONY: sqlhist