Re: linking source files from a different directory macro

2008-01-22 Thread Ralf Wildenhues
Hello Jason, * Jason Roscoe wrote on Tue, Jan 22, 2008 at 01:17:55PM CET: > Ralf Wildenhues wrote: >> You can use AC_CONFIG_LINKS from Autoconf: >> >>

Re: linking source files from a different directory macro

2008-01-22 Thread Bob Friesenhahn
On Tue, 22 Jan 2008, Jason Roscoe wrote: I also saw AC_CONFIG_LINKS but I wasn't sure it would be appropriate for what I was trying to do. I'll have a look at it again. One other thing is that I would like the links to be removed during a 'make clean' step, e.g.. Do you know offhand if AC_

Re: linking source files from a different directory macro

2008-01-22 Thread Jason Roscoe
Ralf Wildenhues wrote: You can use AC_CONFIG_LINKS from Autoconf: or there is AC_PROG_LN_S, which allows you to use $(LN_S) in rules in Makefile.

Re: linking source files from a different directory macro

2008-01-21 Thread Ralf Wildenhues
Jason Roscoe gmail.com> writes: > > I'm new to the mailing list and only have a few days experience working > with Automake. I am wondering if a macro already exists that will link > source files from a different directory into the current one. You can use AC_CONFIG_LINKS from Autoconf:

Re: linking source files from a different directory macro

2008-01-21 Thread Bob Friesenhahn
On Mon, 21 Jan 2008, Jason Roscoe wrote: Bob Friesenhahn wrote: That sounds like a nice feature. For GraphicsMagick (which needs this capability) I distribute a slightly modified version of the old X11 'lndir' shell script and invoke it via an automake 'hook'. This approach seems to work fi

Re: linking source files from a different directory macro

2008-01-21 Thread Jason Roscoe
Bob Friesenhahn wrote: That sounds like a nice feature. For GraphicsMagick (which needs this capability) I distribute a slightly modified version of the old X11 'lndir' shell script and invoke it via an automake 'hook'. This approach seems to work fine. Bob =

Re: linking source files from a different directory macro

2008-01-21 Thread Bob Friesenhahn
On Mon, 21 Jan 2008, Jason Roscoe wrote: Is there a macro, e.g., AM_SOURCE_SYMLINK( ../common/tester.c ), that will create symbolic link(s) to source files residing in a separate directory? Or, if I am looking at this the wrong way, can someone suggest an alternate way of achieving this using

linking source files from a different directory macro

2008-01-21 Thread Jason Roscoe
Hi, I'm new to the mailing list and only have a few days experience working with Automake. I am wondering if a macro already exists that will link source files from a different directory into the current one. For example, given the following directory trees: common/ common/tester.c common/t