[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (un)expected make behavior while using VPATH
From: |
Paul Smith |
Subject: |
Re: (un)expected make behavior while using VPATH |
Date: |
Tue, 13 Nov 2012 11:56:39 -0500 |
On Tue, 2012-11-13 at 18:01 +0200, adrian ilarion Ciobanu wrote:
> %.o: %.c
> $(CC) $(INC) $(CFLAGS) -DSFHASH -o $(OBJDIR)/$@ -c $<
This is an invalid rule. It violates one of my "rules of makefiles":
http://make.mad-scientist.net/rules.html
> using it for the first time: make does not rewrite gcc's input file paths:
> using it second time in a row, it does:
Classic. Don't feel bad, that's what EVERYONE does at first. That may
well point out that VPATH is mis-designed (or that some other facility
is needed). However, that's another conversation. This might help:
http://make.mad-scientist.net/vpath.html
Cheers!