Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: [joist-dev] Re: [joist-cvs] CVS update: joist Makefile

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

Re: [joist-dev] Re: [joist-cvs] CVS update: joist Makefile

Author dlr
Full name Daniel Rall
Date 2000-10-01 22:53:18 PDT
Message Ed Korthof wrote:
>
> On Sun, 1 Oct 2000, Daniel L. Rall wrote:
>
> > When you have moment, would you elaborate and/or provide an example?
> > This seems very odd.
>
> The basic problem is that if make finds a directory called build -- and
> your target is build -- it sees that the directory exists and doesn't
> depend on anything else. It decides that the build target is therefore
> up-to-date. Lovely, eh?
>
> Two ways to trick it are to make build depend on a bogus target (a name
> which doesn't have a corresponding file or directory) or to make build
> depend on another target (like build-real) satisfying the same conditions
> -- or change the name of the ant build directory.
>
> > It seems like if this is the case, I probably just wrote the Makefile
> > poorly and we should revamp it (ditto for Helm).
>
> It's just make stupidity, IMO.

Ahh, thanks Ed, I totally overlooked that (doh!). The idiomatic way to
do this is to use an empty target named "FORCE", generally the last
target in the file. GNU make has another way around this, but I'll just
apply the standard fix so we're not tied to gmake (by this, at least).
--

Daniel Rall <dlr at finemaltcoding dot com>

« Previous message in topic | 3 of 7 | Next message in topic »

Messages

Show all messages in topic

Re: [joist-cvs] CVS update: joist Makefile dlr Daniel Rall 2000-10-01 22:38:45 PDT
     Re: [joist-dev] Re: [joist-cvs] CVS update: joist Makefile edk Ed Korthof 2000-10-01 22:48:16 PDT
         Re: [joist-dev] Re: [joist-cvs] CVS update: joist Makefile dlr Daniel Rall 2000-10-01 22:53:18 PDT
         Re: [joist-dev] Re: [joist-cvs] CVS update: joist Makefile stack Michael Stack 2000-10-02 10:01:43 PDT
             Re: [joist-dev] Re: [joist-cvs] CVS update: joist Makefile dlr Daniel Rall 2000-10-02 11:39:58 PDT
                 Re: [joist-dev] Re: [joist-cvs] CVS update: joist Makefile stack Michael Stack 2000-10-02 12:03:24 PDT
                     Re: [joist-dev] Re: [joist-cvs] CVS update: joist Makefile dlr Daniel Rall 2000-10-02 12:45:45 PDT
Messages per page: