help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tricky suffix rule problem for Corba


From: Paul D. Smith
Subject: Re: Tricky suffix rule problem for Corba
Date: Mon, 13 Feb 2006 11:01:14 -0500

%% "CARTER-HITCHIN, David, FM" <address@hidden> 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 <address@hidden>          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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]