multi-line AC_SUBSTs as targets in Makefile.am

2007-10-08 Thread William Pursell
I've been using AC_SUBST_FILE to put common targets into my makefile.am's. eg, Makefile.am contains: @FOO_TARGET@ where configure.ac contains FOO_TARGET=foo_target AC_SUBST_FILE(FOO_TARGET) and foo_target contains: foo: echo foo I would like to do this via AC_SUBST, but this

Re: multi-line AC_SUBSTs as targets in Makefile.am

2007-10-08 Thread Andreas Schwab
William Pursell [EMAIL PROTECTED] writes: I'd like to get away from AC_SUBST_FILE, but I don't see a way around the manner in which automake is building the Makefile. Is there a way to construct a generic target via AC_SUBST? How about using AM_CONDITIONAL instead? Andreas. -- Andreas

Re: multi-line AC_SUBSTs as targets in Makefile.am

2007-10-08 Thread William Pursell
Andreas Schwab wrote: William Pursell [EMAIL PROTECTED] writes: I'd like to get away from AC_SUBST_FILE, but I don't see a way around the manner in which automake is building the Makefile. Is there a way to construct a generic target via AC_SUBST? How about using AM_CONDITIONAL instead?

Re: multi-line AC_SUBSTs as targets in Makefile.am

2007-10-08 Thread Ralf Wildenhues
Hello William, * William Pursell wrote on Mon, Oct 08, 2007 at 12:11:59PM CEST: Andreas Schwab wrote: William Pursell [EMAIL PROTECTED] writes: I'd like to get away from AC_SUBST_FILE, but I don't see a way around the manner in which automake is building the Makefile. Is there a way to