aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt (Google) <rostedt@goodmis.org>2022-06-06 15:29:48 -0400
committerSteven Rostedt (Google) <rostedt@goodmis.org>2022-06-08 11:19:45 -0400
commit45ee277e72bbe625a67520595d5044527ea60a45 (patch)
tree779e723c6a8fccc553bb45b213ae7835826fba6a
parentdeb54b1d20f6bae4fff7ce195540b81fedfb2bd0 (diff)
downloadlibtracefs-45ee277e72bbe625a67520595d5044527ea60a45.tar.gz
libtracefs: Fix make sqlhist when built again
"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. Link: https://lore.kernel.org/linux-trace-devel/20220606192953.334315-2-rostedt@goodmis.org Tested-by: Harald Seiler <hws@denx.de> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
-rw-r--r--samples/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/samples/Makefile b/samples/Makefile
index 97a570d..c1392fb 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