mbox series

[0/2] libtracefs: Update sqlhist bison and flex

Message ID 20250404161504.1671790-1-rostedt@goodmis.org (mailing list archive)
Headers show
Series libtracefs: Update sqlhist bison and flex | expand

Message

Steven Rostedt April 4, 2025, 4:12 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

The way that git doesn't save timestamps of files causes the flex and bison
source to regenerate the flex and bison output files. This can be annoying
when the source of the flex and bison files are not updated. Worse, it can
cause the build to fail if the system doesn't have flex nor bison.

Instead add a new make target: sqlhist_remake

The bison and flex utilities will only be run when this target is specified.
Otherwise it will not build the output file from bison nor flex.

Steven Rostedt (Google) (2):
  libtracefs: Add make sqlhist_remake to run bison and flex
  libtracefs: Rerun bison and flex via make sqlhist_remake

 Makefile          |   3 +
 src/Makefile      |  14 +-
 src/sqlhist-lex.c |  66 +++---
 src/sqlhist.l     |   2 +
 src/sqlhist.tab.c | 504 +++++++++++++++++++---------------------------
 src/sqlhist.tab.h |  14 +-
 src/sqlhist.y     |   1 +
 7 files changed, 262 insertions(+), 342 deletions(-)