Mail Archives: djgpp/1998/01/21/10:56:01
Shawn Hargreaves (Shawn AT talula DOT demon DOT co DOT uk) wrote:
> Ruiter de M writes:
> >What I hope to do is to use ONE dependancy in ONE makefile in ONE run
> >of `make' to handle this, because the names of the dirs can change and
> >I want them in a variable. I have tried all sorts of things but it was
> >not possible.
> I am no make expert
I was no expert either, but after digging in the info file for a while
I start to believe I'm expert enough to say it's not possible at all.
> but I think the VPATH directive will be able to do what you want.
I already tried that, see below.
> [snip]
> Of course this isn't any good if you have different files with the
> same names in various directories,
Ha, that's exactly the problem with this solution. I *do* have
different files with the same names in various directories.
> but I find it extremely handy since it lets me organise the code in
> a sensible directory structure without having to list any paths in
> the makefile.
True, but no solution to this specific problem. 2 bad.
--
Groeten, Michel. http://www.cs.vu.nl/~mdruiter
\----/==\----/
\ / \ / "You know, Beavis, you need things that suck,
\/ \/ to have things that are cool", Butt-Head.
- Raw text -