]> git.ipfire.org Git - thirdparty/util-linux.git/commit
autotools: use stamp file to build filter parser, improve portability
authorKarel Zak <kzak@redhat.com>
Mon, 13 Nov 2023 13:16:03 +0000 (14:16 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 20 Nov 2023 21:25:47 +0000 (22:25 +0100)
commit55a460055204047a196efdc2826b3493ee0b6194
tree9d542b524bab8e00ab42dbdf0c3e5e907b0fde08
parentc4555b426dbaf13360a2b926bca107ed1f3abd0d
autotools: use stamp file to build filter parser, improve portability

* use .stamp files to generate .c and .h by only one flex and bison call

* use bison --defines=HEADER rather than --header=, the --header is
  supported also by old bison version (like common bison 3.0.4)

* make sure there is defined dependence between the scanner and parser
  .c and .h files (scanner need header from parser and vice-versa)

* distribute .stamp files to avoid flex and bison for people who use
  sources from tarball (we distribute generated source files)

Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/src/Makemodule.am