From c5c7c1146f2488f92b11b1edbe36fa99ffdf2771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 22 Mar 2013 00:52:16 +0100 Subject: [PATCH] build: Adjust makefiles for `guile-procedures.txt'. * libguile/Makefile.am (all-local): New target. * Makefile.am (libguile/guile-procedures.txt): Output to $@.tmp first. (CLEANFILES): New variable. --- Makefile.am | 4 +++- libguile/Makefile.am | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 737897bcf..8cdcc7e4e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -52,7 +52,8 @@ libguile/guile-procedures.txt: libguile/guile-procedures.texi $(top_builddir)/meta/guile --no-auto-compile \ "$(srcdir)/libguile/texi-fragments-to-docstrings" \ "$(builddir)/libguile/guile-procedures.texi" \ - > libguile/guile-procedures.txt + > $@.tmp + @mv $@.tmp $@ EXTRA_DIST = LICENSE HACKING GUILE-VERSION \ m4/ChangeLog-2008 \ @@ -70,6 +71,7 @@ TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ ACLOCAL_AMFLAGS = -I m4 +CLEANFILES = libguile/guile-procedures.txt DISTCLEANFILES = check-guile.log DISTCHECK_CONFIGURE_FLAGS = --enable-error-on-warning diff --git a/libguile/Makefile.am b/libguile/Makefile.am index 450d955ce..4b1f96bee 100644 --- a/libguile/Makefile.am +++ b/libguile/Makefile.am @@ -429,6 +429,10 @@ BUILT_SOURCES = cpp-E.c cpp-SIG.c libpath.h \ scmconfig.h \ $(DOT_I_FILES) $(DOT_X_FILES) $(EXTRA_DOT_X_FILES) +# Force the generation of `guile-procedures.texi' because the top-level +# Makefile expects it to be built. +all-local: guile-procedures.texi + EXTRA_libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES = _scm.h \ memmove.c strerror.c \ dynl.c regex-posix.c \