[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: substitution vs expansion in

From: Erik de Castro Lopo
Subject: Re: substitution vs expansion in
Date: Wed, 5 Mar 2008 13:02:29 +1100

Harlan Stenn wrote:

> You can use: ../common/mySleep.c in your foo_SOURCES list.

If the sources are in /home/user/src and you go to /home/usr/build
and do "../src/configure" the above will be completely wrong.

The correct way to do it is to use "$(top_srcdir)/common/mySleep.c"
which will work under all circumstances.

Erik de Castro Lopo
"The object-oriented model makes it easy to build up programs by
accretion. What this often means, in practice, is that it provides
a structured way to write spaghetti code." -- Paul Graham

reply via email to

[Prev in Thread] Current Thread [Next in Thread]