build: Adjust makefiles for `guile-procedures.txt'.
authorLudovic Courtès <ludo@gnu.org>
Thu, 21 Mar 2013 23:52:16 +0000 (00:52 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 21 Mar 2013 23:52:16 +0000 (00:52 +0100)
* libguile/Makefile.am (all-local): New target.
* Makefile.am (libguile/guile-procedures.txt): Output to $@.tmp first.
  (CLEANFILES): New variable.

Makefile.am
libguile/Makefile.am

index 737897b..8cdcc7e 100644 (file)
@@ -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
index 450d955..4b1f96b 100644 (file)
@@ -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                       \