[Top][All Lists]

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

Re: Shipping generated file from generated generator

From: Stepan Kasal
Subject: Re: Shipping generated file from generated generator
Date: Thu, 21 Oct 2004 17:05:21 +0200
User-agent: Mutt/1.4.1i

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/
Does it answer your question?

        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.

reply via email to

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