help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with interaction between gnu-automake and gnu-make


From: Paul Smith
Subject: Re: problem with interaction between gnu-automake and gnu-make
Date: Wed, 18 Sep 2024 09:47:46 -0400
User-agent: Evolution 3.52.4 (by Flathub.org)

On Wed, 2024-09-18 at 10:21 +0200, aotto wrote:
> 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.

I don't really understand this suggestion, but based on the error
message you received all you have to do is remove any TABs used to
indent GNU Make preprocessor statements.

So instead of:

  <TAB>ifndef MAKE_LANG
    ...
  <TAB>endif

you should convert those TAB characters to spaces, like:

          ifndef MAKE_LANG
            ...
          endif

Using TAB to indent GNU Make preprocessor statements is not valid; from
the GNU Make manual:

> Extra spaces are allowed and ignored at the beginning of the
> conditional directive line, but a tab is not allowed.

See:
https://www.gnu.org/software/make/manual/html_node/Conditional-Syntax.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]