bug-automake
[Top][All Lists]
Advanced

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

Re: How do I avoid a specific variable in the Makefile?


From: Ralf Wildenhues
Subject: Re: How do I avoid a specific variable in the Makefile?
Date: Thu, 15 Mar 2007 13:29:30 +0100
User-agent: Mutt/1.5.14 (2007-03-03)

[ Cc:ing bug-automake for an documentation request ]

Hello Jules,

* Jules Colding wrote on Thu, Mar 15, 2007 at 12:10:54PM CET:
> 
> I've got a multiline configure.in variable like this:
> 
>   RPM_BUILDREQUIRES='BuildRequires:  package_1
>   BuildRequires:  package_2'
>   AC_SUBST(RPM_BUILDREQUIRES)
[...]
> This unfortunately has a side effect as it creates a target in my
> Makefile named "BuildRequires:" requiring the target "package_2".

I assume you use Automake 1.10 (and Autoconf >= 2.60 earlier versions
did not cope with multiline variables)?  Because if you don't use
Automake, but write Makefile.in yourself, just not mentioning
@RPM_BUILDREQUIRES@ in Makefile.in would be sufficient.

> Is there a way for me to get the required substitution in the spec file
> without AC_SUBST()'ing so that I avoid getting the value substituted
> into the Makefile as well?

Yes, but I'm afraid it's currently not documented by Automake.
Add
  _AM_SUBST_NOTMAKE([RPM_BUILDREQUIRES])

I think Automake should publicize this interface; more precisely, I
think Automake should implement an alias AM_SUBST_NOTMAKE which does the
same thing, document it, and keep the underscored name as undocumented
alias.

Cheers,
Ralf




reply via email to

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