This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: VPATH in automake


>>>>> "James" == James Bonfield <jkb@mrc-lmb.cam.ac.uk> writes:

James> eg_SOURCES = a/a.c b/b.c c/c.c

As Alexandre says, this works in the cvs automake.

James> Notice the lack of a plus sign.

Automake handles `+=' "specially", which unfortunately means it
sometimes doesn't do what you expect.

James> In turn, config.status seems to completely remove this line
James> when producing Makefile from Makefile.in (unless it's +=). Is
James> there a simple solution to this? This is really my first
James> venture into any of autoconf and automake so I'm still
James> stumbling quit a bit. (Indeed it took me a while to even
James> realise that automake and libtool existed - is there a decent
James> FAQ I can go to?)

There isn't a FAQ but there are some tutorials.  The autoconf web page
should point to them.

I'm suprised config.status removes the line.

Note that putting multiple directories into VPATH isn't portable.
(Though I suppose that is a curious thing to say since we also claim
to only support VPATH with GNU make -- so portability be damned, I
guess.)

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]