libtracefs: Add make sqlhist_remake to run bison and flex
Because git tends to not maintain timestamps of files, the sqlhist.y and
sqlhist.l can end up having an later timestamp than the files they
produce. This triggers bison and flex to be run and recreate the files
sqlhist.tab.h, sqlhist.tab.c and sqlhist-lex.c.
At best, this causes git to see the differences, at worse, the system may
not even have bison or flex and the build fails.
Add a new make target: make sqlhist_remake
This new target will run the bison and flex portions of the build.
It only needs to be run if the files sqlhist.y or sqlhist.l are modified.
Cc: Oleh Matiusha <omatiush@cisco.com>
Link: https://lore.kernel.org/20250404161504.1671790-2-rostedt@goodmis.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
4 files changed