This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
How build C++ header with m4 and install them - no program
- From: Marc Waeckerlin <Marc dot Waeckerlin at siemens dot com>
- To: automake at gnu dot org
- Date: Thu, 19 Sep 2002 13:51:15 +0200
- Subject: How build C++ header with m4 and install them - no program
Hi There
The following problem drives me crazy:
I have a little C++ signal-slot library, that consists of only two C++ header
files. The automake script should do the following:
Sources are:
sig/functor.hxx.m4
sig/sigslot.hxx.m4
sig/macros.m4
Targets are:
sig/functor.hxx
sig/sigslot.hxx
Build rules are:
%: %.m4
m4 $< > $@
Installation should create:
${PREFIX}/include/sig/functor.hxx
${PREFIX}/include/sig/sigslot.hxx
Questions:
How do I write the makefile.am?
- How to tell that the *.hxx are targets that must be cleared?
- How to tell that the *.hxx are derieved from the *.m4?
Is there a check or macros for invoking m4 in autoconf, automake?
There's no docu for that, I tried a lot, i.e.:
The following does not work:
nobase_include_HEADER = sig/functor.hxx sig/sigslot.hxx
BUILT_SOURCES = sig/functor.hxx sig/sigslot.hxx
sig_functor_hxx_DEPENDENCIES = sig/functor.hxx.m4 macros.m4
sig_sigslot_hxx_DEPENDENCIES = sig/sigslot.hxx.m4 macros.m4
Thank you
Regards
Marc