CVSROOT:        /sources/m4
Module name:    m4
Branch:         branch-1_4
Changes by:     Eric Blake <ericb>      06/07/06 18:10:38

Index: doc/Makefile.am
===================================================================
RCS file: /sources/m4/m4/doc/Attic/Makefile.am,v
retrieving revision 1.8.2.3
retrieving revision 1.8.2.4
diff -u -b -r1.8.2.3 -r1.8.2.4
--- doc/Makefile.am     7 Jun 2006 18:46:42 -0000       1.8.2.3
+++ doc/Makefile.am     6 Jul 2006 18:10:38 -0000       1.8.2.4
@@ -27,9 +27,17 @@
 
 # Depend on configure.ac for version, m4.c for usage text.  Do not depend on
 # built m4 executable, since not everyone has help2man or perl.
-m4.1: $(top_srcdir)/configure.ac $(top_srcdir)/src/m4.c
+# Build the man page once in the srcdir, rather than in every VPATH build
+# dir, to match how automake builds info pages.  This is safe for 'make
+# distcheck' since it is distributed pre-built.
+$(srcdir)/m4.1: $(top_srcdir)/configure.ac $(top_srcdir)/src/m4.c
        @if test -x ../src/m4$(EXEEXT) ; then \
          echo "Updating man page m4.1" ; \
          $(SHELL) $(top_srcdir)/missing --run \
-           help2man -o m4.1 ../src/m4$(EXEEXT) ; \
+           help2man -o [EMAIL PROTECTED] ../src/m4$(EXEEXT) ; \
+         cmp -s [EMAIL PROTECTED] $@ || cp [EMAIL PROTECTED] $@; \
+         rm -f [EMAIL PROTECTED]; \
+       else \
+         echo "WARNING: The \`man' page \`$@' cannot be updated yet."; \
+         echo "         Retry once the program executable is ready."; \
        fi


Reply via email to