[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
build from tarball uses bison
From: |
Bruno Haible |
Subject: |
build from tarball uses bison |
Date: |
Sat, 20 Feb 2021 01:06:24 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-201-generic; KDE/5.18.0; x86_64; ; ) |
A build of poke-0.90 uses bison:
bison -d -t --report=state --output pk-map-tab.c \
../../poke/pk-map-tab.y
While the GCS allow this (see
<https://www.gnu.org/prep/standards/html_node/Utilities-in-Makefiles.html>),
it is a best practice to avoid bison as a build prerequisite, by packaging
the generated files in the tarball. See
<https://www.gnu.org/prep/standards/html_node/Makefile-Basics.html>
The attached patch to poke/Makefile.am fixes this.
The libpoke/ subdirectory has a related problem: It distributes the
pkl-tab.h and pkl-tab.c files (good!), but erases them during "make clean".
After "make clean", "make" then needs bison here as well:
bison -d -t --report=state --output pkl-tab.c \
./pkl-tab.y
Also fixed in the patch.
0001-Make-it-possible-to-build-the-tarballs-without-bison.patch
Description: Text Data
- build from tarball uses bison,
Bruno Haible <=