Hello Akim,

On Thu, Oct 21, 2004 at 04:41:33PM +0200, Akim Demaille wrote:
> I would like to ship generated-output (hence it's in srcdir), to spare
> the user the need to build it.

I wouldn't distribute it unless absolutely necessary, but that's not
the question.

Below is an example, adapted from texinfo's info/Makefile.am.
Does it answer your question?

Regards,
        Stepan Kasal

----------
noinst_PROGRAMS = makedoc
bin_PROGRAMS = ginfo infokey

makedoc_SOURCES = makedoc.c
ginfo_SOURCES = echo-area.c echo-area.h ... \
  doc.c funs.h
infokey_SOURCES = infokey.c infokey.h key.c key.h funs.h

generated_sources = doc.c key.c funs.h

$(generated_sources): makedoc$(EXEEXT) $(cmd_sources)
        rm -f $(generated_sources)
        $(top_builddir)/$(native_tools)/info/makedoc $(cmd_sources)

cmd_sources = $(srcdir)/session.c $(srcdir)/echo-area.c $(srcdir)/infodoc.c \
  $(srcdir)/m-x.c $(srcdir)/indices.c $(srcdir)/nodemenu.c \
  $(srcdir)/footnotes.c $(srcdir)/variables.c

# The following hack is necessary to hint make before the automatic
# dependencies are built.  See the automake manual for a detailed explanation.
BUILT_SOURCES = funs.h
----------



Reply via email to