i launched this Makefile :
 
__%.cpp : %.cpp
    @echo #new_file .myd > $*.myd
 
%.cpp : a
    @echo //New_file .cpp > $*.cpp
 
with command make (GNU make version 3.79.1) __base.cpp in a directory where doesn't exist the file base.cpp but it exists the file a.
 
When make matches the target __%.cpp, it tries the prerequisite base.cpp (i think it looks for a chain of implicit rules), but it doesn't match the target %.cpp of the second implicit rule.
I apologies if i'm wrong, but in the gnu make manual (pdf version) at the 10.4, pag. 95-96 is written that an intermediate file is created only if his prerequisities exist. In this case it should be like that!
 
_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make

Reply via email to