bug-make
[Top][All Lists]
Advanced

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

[bug #30829] vpath conflict with file mention in makefile vs file on dis


From: anonymous
Subject: [bug #30829] vpath conflict with file mention in makefile vs file on disk
Date: Fri, 20 Aug 2010 16:09:44 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

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/




reply via email to

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