Can anyone help me with this implicit rule chain? I have the following Makefile:
 
----------------------------------------------------------------------------------------------
JC = /usr/local/java/bin/javac
CLASSPATH = /usr/local/java/src.jar:MrMappie/jsObjectStuff:MrMappie.jar:.
SOURCEPATH = MrMappie:Utilities
VPATH = MrMappie:Utilities:Utilities/Images
MrMappie.jar(%):
       jar uMf $@ $%
%.class: %.java
       $(JC) -classpath $(CLASSPATH) -sourcepath $(SOURCEPATH) $<
.SECONDARY: %.class
#.PRECIOUS: %.class
clean:
       rm */*.class
----------------------------------------------------------------------------------------------
When make is run with
 
make -d 'MrMappie.jar(ServletCall.class)'
it produces, "
Updating goal targets....
Considering target file `MrMappie.jar(ServletCall.class)'.
File `MrMappie.jar(ServletCall.class)' does not exist.
Looking for an implicit rule for `MrMappie.jar(ServletCall.class)'.
Trying pattern rule with stem `ServletCall.class'.
Found an implicit rule for `MrMappie.jar(ServletCall.class)'.
Finished prerequisites of target file `MrMappie.jar(ServletCall.class)'.
Must remake target `MrMappie.jar(ServletCall.class)'.
jar uMf MrMappie.jar ServletCall.class
Putting child 0x000520f8 (MrMappie.jar(ServletCall.class)) PID 25320 on the cha\
in.
Live child 0x000520f8 (MrMappie.jar(ServletCall.class)) PID 25320
ServletCall.class : no such file or directory
Got a SIGCHLD; 1 unreaped children.
Reaping losing child 0x000520f8 PID 25320
make: *** [MrMappie.jar(ServletCall.class)] Error 1
Removing child 0x000520f8 PID 25320 from chain.
".
 
Having found the implicit rule for MrMappie.jar, why doesn't it find the implicit rule for the "class" file when it knows it doesn't exist?
 
Thanks in advance,

Paul Cameron
Senior Analyst/Programmer
RP Data Pty Ltd

Ext: 934
 
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to