From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> "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@xxxxxxxxxxx> --- samples/Makefile | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.35.1