automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How build C++ header with m4 and install them - no program


From: Marc Waeckerlin
Subject: How build C++ header with m4 and install them - no program
Date: Thu, 19 Sep 2002 13:51:15 +0200
User-agent: KMail/1.4.2

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]