%% "CARTER-HITCHIN, David, FM" <[EMAIL PROTECTED]> writes:
cdf> The rule to build the headers is like this:
cdf> %.h %.cc: %.idl
cdf> $(IDL_COMMAND) $(IDL_OPTIONS) $<
cdf> This is the problem - the prerequisite $< is '../idl/a.idl' (for
cdf> example) and the target is '../idl/a.h' when it should be just
cdf> 'a.h'.
You don't say what you want to do with the .cc file but...
%.h ../idl/%.cc : ../idl/%.idl
$(IDL_COMMAND) $(IDL_OPTIONS) $<
--
-------------------------------------------------------------------------------
Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make