I bet the answer is very simple but I can't get it to work
given the following make file:
%.build: %.att %.guidance
@echo "Done testing."
%.att:
@ echo "gmake[$(MAKELEVEL)]: $@ does not exist. Linking from parent."
@ ln -s ../$(rtl_name).att $@ ;
%.guidance:
@ echo "gmake[$(MAKELEVEL)]: $@ does not exist. Linking from parent."
@ ln -s ../$(rtl_name).guidance $@ ;
And running the following command:
gmake foo.build
I get the following result:
gmake[0]: foo.att does not exist. Linking from parent.
gmake[0]: foo.guidance does not exist. Linking from parent.
Done testing.
rm foo.guidance foo.att
It's the last line that I don't understand. Why is gmake removing the
foo.att and foo.guidance targets. Is gmake thinking that these are
intermediate targets? I tried setting the .SECONDARY target and got the same
result. How do I get gmake to leave the %.foo and %.guidance targets??
Version: GNU Make version 3.78.1, by Richard Stallman and Roland McGrath.
System: SunOS eisenhower 5.7 Generic_106541-08 sun4u sparc SUNW,Ultra-Enterprise
Thankx,
Alan
Alan Heinold - Sun Microsystems, Inc. PO Box 4003 Burlington, MA 01803-0903
Email: [EMAIL PROTECTED] Phone: 781/442-0256 Fax: 781/442-1646