[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do I avoid a specific variable in the Makefile?
From: |
Jules Colding |
Subject: |
Re: How do I avoid a specific variable in the Makefile? |
Date: |
Mon, 19 Mar 2007 15:36:19 +0100 |
Hi Ralf,
On Thu, 2007-03-15 at 13:29 +0100, Ralf Wildenhues wrote:
> [ 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 can't get automake to swallow this macro in OpenSUSE 10.2. Which
automake version(s) supports it?
Thanks,
jules