2004-10-20 Stepan Kasal BUILT_SOURCES is a special variable for a hack to supplement the automatic dependency tracking; we need it for funs.h only. See the explanation in the automake manual. * info/Makefile.am (BUILT_SOURCES): All occurences replaced by ... (generated_sources): ... this new variable. (BUILT_SOURCES): set to ``funs.h''. --- info/Makefile.am 2004-10-20 13:10:10.000000000 +0200 +++ info/Makefile.am 2004-10-20 16:23:40.000000000 +0200 @@ -29,15 +29,21 @@ -DINFODIR2=\"$(infodir2)\" LDADD = ../lib/libtxi.a $(TERMLIBS) $(LIBINTL) -# The files `doc.c' and `funs.h' are created by ./makedoc run over the source -# files which contain DECLARE_INFO_COMMAND. `funs.h' is a header file +# The files `doc.c', `key.c' and `funs.h' are created by ./makedoc run over the +# source files which contain DECLARE_INFO_COMMAND. `funs.h' is a header file # listing the functions found. `doc.c' is a structure containing pointers # to those functions along with completable names and documentation strings. -BUILT_SOURCES = doc.c funs.h key.c - -# We distribute the BUILT_SOURCES even though they get rebuilt by +# +# We distribute these files even though they get rebuilt by # installers, just in case something goes wrong. Then installers have # the intended sources there to use or debug with. + +generated_sources = doc.c key.c funs.h + +# The following hack is necessary to hint make before the automatic +# dependencies are built. +BUILT_SOURCES = funs.h + EXTRA_DIST = README pcterm.c makedoc_SOURCES = makedoc.c @@ -58,6 +64,6 @@ $(srcdir)/footnotes.c $(srcdir)/variables.c # The $(EXEEXT) should be added by Automake, but isn't. Fine. -$(BUILT_SOURCES): makedoc$(EXEEXT) $(cmd_sources) - rm -f $(BUILT_SOURCES) +$(generated_sources): makedoc$(EXEEXT) $(cmd_sources) + rm -f $(generated_sources) $(top_builddir)/$(native_tools)/info/makedoc $(cmd_sources)