Hi Diego,

On Tue, May 30, 2000 at 02:29:34PM +0200, Diego Sevilla Ruiz wrote:
>     I am planning to write a series of macros/utilities for
> dealing with ORB generated files. Each ORB generates a set of
> different files from an IDL file. I would like to integrate
> automatically the dependencies. The problem is that I cannot
> automatically generate makefile rules for the generated files.
> For example, what I would like to do is something like this: In
> my Makefile.in (or Makefile.am), I would like to put:
> 
> IDL_DEPS(anyfile.idl)
> 
> i.e.: "generate the dependencies for the IDL file "anyfile.idl".
> The files generated depend on each ORB, and can be configure'd,
> but I don't know
> 
> 1. how (or where) to write such a macro that generate a bunch of
> rules
> 2. where to put it, write it as a m4 file, write an independent
> utility that modifies Makefile.am (in the last case, what rules
> would be the best ones? i.e. should I include new rules under
> "all-local" in Makefile.am?

I'm not sure if this will help you, but the KDE folks use a script
called "am_edit" that modifies a Makefile.in to include rules/targets
for a case similar to what you describe.  I'm using a modified version
of this script for TAO, for example.

  http://kdecvs.stud.fh-heilbronn.de/cvsweb/kde-common/admin/am_edit

Of course, if you find a better way to handle automatic rule/target
generation for CORBA IDL stubs and skeletons, then please let us
know.  I'd be very interested.

-Ossama
-- 
Ossama Othman <[EMAIL PROTECTED]>
Distributed Object Computing Laboratory, Univ. of California at Irvine
1024D/F7A394A8 - 84ED AA0B 1203 99E4 1068  70E6 5EB7 5E71 F7A3 94A8

Reply via email to