Diego Sevilla Ruiz wrote:
>
> Hi all:
>
> 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
It must be in Makefile.am, not in Makefile.in
Why: You can't write loops in m4.
(am->m4 generator have normal modular structure, so find a place is
not a problem)
> 2. where to put it, write it as a m4 file, write an independent
include as part of .am -> .in generator
> utility that modifies Makefile.am (in the last case, what rules
why ?
> would be the best ones? i.e. should I include new rules under
> "all-local" in Makefile.am?
>
> I am confused.
> Really thanks in advance.
> diego.
>
> --
> Diego Sevilla Ruiz -- http://www.ditec.um.es/~dsevilla/ -- dsevilla at um dot es