problem with interaction between gnu-automake and gnu-make
aotto <[email protected]> Wed, 18 Sep 2024 10:21:46 +0200
| Newsgroups | gmane.comp.gnu.make.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I run into a problem like:
> theConfig/c/Makefile_local.mk:40: error: endif without if
which is a command-namespace clash between "gnu-automake" and "gnu-make" sharing the "endif" command:
-> this is the same problem as: https://lists.gnu.org/archive/html/automake/2000-10/msg00107.html
-------------------------------------------------------------------------------------------------------
My problem is that I include a "gnu-make" file into a "gnu-automake" file and the "gnu-make" file has an
construct like:
ifndefMAKE_LNG
$(callError, MAKE_LNG not defined)
endif
the CORE problem is that "gnu-automake" and or "gnu-make" does **not** offer an alternative namespace
for there "private" command API like
"endif" -> "gnu_endif" etc
the command above COULD be rewritten as :
gnu_ifndefMAKE_LNG
$(gnu_callError, MAKE_LNG not defined)
gnu_endif
etc, and **all** the problems are gone.