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/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make