URL:
<http://savannah.gnu.org/bugs/?30829>
Summary: vpath conflict with file mention in makefile vs
file on disk
Project: make
Submitted by: None
Submitted on: Fri 20 Aug 2010 04:09:43 PM UTC
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: 3.81
Operating System: None
Fixed Release: None
Triage Status: None
_______________________________________________________
Details:
Using 3.81
Perhaps this is garbage in garbage out:
Files:
$ ls woo sue
sue:
boo.h
woo:
$
Makefile:
$ cat vp.mk
a.o: woo/boo.h
# a.o: sue/boo.h
# succeed
# vpath %h sue woo
# fail
vpath %h woo sue
%.enu: %.h
echo enu_BUILD_success $@ $<
all: boo.enu
echo ALL success $@
$
when you run:
./gnumake.exe -f vp.mk all
gnumake finds woo/boo.h in vpath.c with the function selective_vpath_search
(lookup_file line ~488).
It then does not check for the file on disk.
With
vpath %h sue woo
The lookup_file fails and the file is found with dir_file_exists_p.
The problem is the incorrect info:
a.o: woo/boo.h
I found the behaviour at first surprising.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30829>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-make