From: mdruiter AT cs DOT vu DOT nl (Ruiter de M) Newsgroups: comp.os.msdos.djgpp Subject: Re: How do I do this with make? Date: 21 Jan 1998 13:44:06 GMT Organization: Fac. Wiskunde & Informatica, VU, Amsterdam Distribution: world Message-ID: <6a4u36$1o2$1@star.cs.vu.nl> References: <69nuae$492$1 AT star DOT cs DOT vu DOT nl> NNTP-Posting-Host: sloep109.cs.vu.nl Lines: 34 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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.