help-make
[Top][All Lists]
Advanced

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

multiple targets for a single command


From: Jonathan Baccash
Subject: multiple targets for a single command
Date: Tue, 4 Oct 2005 17:01:10 -0700

Some commands create more than one result, and make (3.81beta3)
behaves funny when I try to account for this.  For example:

#-------------
a: b
        touch a

b: c

c: d
        touch c
        touch b
#-------------

Now, if file d exists, this works fine the first time.  But then I
touch d and get weird results:

$ touch d
$ make
touch c
touch b
$ make
touch a
$ make
make: `a' is up to date.

I can make the "b: c" rule touch b to get it to work more properly,
but is there a make bug here?... I'm expecting output more like:

$ touch d
$ make
touch c
touch b
touch a
$ make
make: `a' is up to date.




reply via email to

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