help-make
[Top][All Lists]
Advanced

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

Re: Problems with multiple rules under 3.82


From: Stephan Beal
Subject: Re: Problems with multiple rules under 3.82
Date: Wed, 25 May 2011 18:49:29 +0200

On Wed, May 25, 2011 at 6:37 PM, Mark Frazer <address@hidden> wrote:

> I am stumped at reproducing it on a small example though.  I will sort
> through all the cruft in my makefile and report the change that fixes the
> build order.
>

If i understand the problem correctly, it seems to work properly on 3.81
(just FYI):

Makefile:
-------------------
all: foo.o
dep1 dep2 foo.c:
touch $@
X := foo.o
$(X): INCLUDES+=-I.
$(X): dep1 dep2
$(X):
# cc -c $(INCLUDES) $@
touch $@
clean:
rm -f dep1 dep2 foo.*
-------------------

address@hidden:~/tmp]$ make
touch dep1
touch dep2
# cc -c -I. foo.o
touch foo.o
address@hidden:~/tmp]$ touch dep2; make
# cc -c -I. foo.o
touch foo.o
address@hidden:~/tmp]$ make
make: Nothing to be done for `all'.

PS:

>  CHEADER = $(CHDRDIR)/Depict.h

i think the correct spelling is "CHEDDAR" ;)

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/


reply via email to

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