Quoting "Paulo J. Matos" <[EMAIL PROTECTED]>:
Hello,

I'm quite curious how can I with autotools integrate a code generator
during the make process. For example:
a generator receives as input .gen files and produces .hh files which
are then used for compilation. How can I integrate this generator by
running the program in all .gen files and then running g++ as usual,
and make clean should clean all generated files. How can I do this?

Regards,


Hello,

--------------------------------------------
bin_PROGRAMS = foo
foo_SOURCES = foo.hh foo.cc
BUILT_SOURCES = foo.hh

foo.hh: foo.gen
       cp foo.gen foo.hh

CLEANFILES = foo.hh
EXTRA_DIST = foo.gen
--------------------------------------------

http://www.gnu.org/software/automake/manual/html_node/Built-sources-example.html

You could have read the manual before asking...
Regards,

--
SIGOURE Benoit aka Tsuna



Reply via email to