|
| From: | Benoit Sigoure |
| Subject: | Re: Integrating Code Generator |
| Date: | Tue, 14 Nov 2006 16:20:31 +0100 |
| User-agent: | Internet Messaging Program (IMP) H3 (4.0.2) |
Quoting "Paulo J. Matos" <address@hidden>:
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
| [Prev in Thread] | Current Thread | [Next in Thread] |