On Fri, 2016-06-10 at 15:37 -0400, Nick Bowler wrote:
> It would be possible to make this work by writing sh code to expand
> the variables, but it is not recommended. Users are supposed to be
> able to set installation directory variables on the make command
> line, e.g.,
>
> make sysconfdir
On Fri, 2016-06-10 at 20:30 +0100, Gavin Smith wrote:
> On 10 June 2016 at 08:05, Peter Johansson wrote:
> > Hi Kip,
> >
> > I have the following rule in my Makefile.am to generate a C header
> > file.
> >
> > configmake.h: Makefile
> > $(AM_V_GEN)echo '#define BINDIR "$(bindir)"' > $@
> >
On Fri, 2016-06-10 at 17:05 +1000, Peter Johansson wrote:
> Hi Kip,
>
> I have the following rule in my Makefile.am to generate a C header
> file.
>
> configmake.h: Makefile
> $(AM_V_GEN)echo '#define BINDIR "$(bindir)"' > $@
>
> You could have a similar rule to generate a file suitable to
On 6/10/16, Kip Warner wrote:
> Thanks for the suggestion. Unfortunately I've already got access to the
> variable through the pre-processor (e.g. AM_CPPFLAGS), but I need the
> variable substituted in a non-compiled .in file with AC_CONFIG_FILES.
It would be possible to make this work by writing
On 10 June 2016 at 08:05, Peter Johansson wrote:
> Hi Kip,
>
> I have the following rule in my Makefile.am to generate a C header file.
>
> configmake.h: Makefile
> $(AM_V_GEN)echo '#define BINDIR "$(bindir)"' > $@
>
> You could have a similar rule to generate a file suitable to source into
>
On Fri, 2016-06-10 at 19:33 +0100, Gavin Smith wrote:
> It's possible to communicate shell variables with AM_CPPFLAGS. I
> wrote
> about this method at
> http://buildsystem-manual.sourceforge.net/Adding-a-data-file-to-be-in
> stalled.html#Adding-a-data-file-to-be-installed.
> For convenience, I've
On 10 June 2016 at 07:10, Kip Warner wrote:
> I'd like to make the fully expanded $sysconfdir shell variable
> available within a file processed via AC_CONFIG_FILES. I am currently
> trying AC_SUBST([SYSCONFDIR], [$sysconfdir]), but it is not fully
> evaluated at ${prefix}/etc which is useless for
Hi Kip,
I have the following rule in my Makefile.am to generate a C header file.
configmake.h: Makefile
$(AM_V_GEN)echo '#define BINDIR "$(bindir)"' > $@
You could have a similar rule to generate a file suitable to source into
your script.
Cheers,
Peter
On 06/10/2016 04:10 PM, Kip Warne