bug-make
[Top][All Lists]
Advanced

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

[bug #31149] The rule for generation dependency file (%.d) doesn't work


From: anonymous
Subject: [bug #31149] The rule for generation dependency file (%.d) doesn't work
Date: Tue, 28 Sep 2010 11:48:27 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10

URL:
  <http://savannah.gnu.org/bugs/?31149>

                 Summary: The rule for generation dependency file (%.d)
doesn't work
                 Project: make
            Submitted by: None
            Submitted on: Втр 28 Сен 2010 11:48:26
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 3.82
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

Steps to reproduce:
1. Unpack bug_0001.zip file (attached);
2. Execute makefile from archive on Linux platform. Result of operation:
     > make
     Creating dir Obj
     Generate dependency for test1.cpp
     Generate dependency for test2.cpp
     Compiling test1.cpp
     Compiling test2.cpp
     Linking test.so
3. Remove file rm ./Obj/test1.o;
4. Execute makefile again. Result of operation:
     Compiling test1.cpp
     Linking test.so
5. Remove file rm ./Obj/test1.d;
6. Execute makefile again.

Expected result:
  The dependency file generated by rule %.d;

Actual result:
  make: *** No rule to make target `Obj/test1.d', needed by `test.so'.
Stop.

Note: On Windows platform this case work properly.
On Linux it's work only if dependency files placed in current directory
and -include of dependency files written without $(addprefix ...).
Adding vpath %.d doesn't solve problem.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Втр 28 Сен 2010 11:48:26  Name: bug_0001.zip  Size: 932B   By:
None

<http://savannah.gnu.org/bugs/download.php?file_id=21563>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31149>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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