[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shipping generated file from generated generator
From: |
Akim Demaille |
Subject: |
Re: Shipping generated file from generated generator |
Date: |
Thu, 21 Oct 2004 18:06:42 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
>>> "Stepan" == Stepan Kasal <address@hidden> writes:
> Hello Akim,
Hi!
> ----------
> 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)
Warning: Read the node `Multiple Outputs' in Automake.texi.
> 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
> ----------
Do this work? The sources are never re-generated on the user side? I
don't see the difference with my case actually, but for me, it builds
the generator and rebuilds the generated-output.
Also, I see no provision to generate these files in srcdir. Are you
really sure you ship and use them?
Re: Shipping generated file from generated generator, Alexandre Duret-Lutz, 2004/10/22