fixup: always use correct path for automake/aclocal wrappers
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 17 Feb 2012 15:01:25 +0000 (16:01 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 17 Feb 2012 15:01:25 +0000 (16:01 +0100)
Otherwise, bootstrapping from a git checkout won't work anymore.
Issue introduced in today's commit 'v1.11-1974-ga98e58f'.

* doc/Makefile.am ($(srcdir)/amhello-1.0.tar.gz): Export PATH in a
way that makes the automake and aclocal wrappers truly accessible
(the location of this wrappers has been modified in a recent commit,
but this makefile hadn't been updated accordingly).
(update_mans): Likewise.

doc/Makefile.am

index 150e94d..ffd294d 100644 (file)
@@ -28,7 +28,8 @@ dist_man1_MANS = \
   $(srcdir)/automake-$(APIVERSION).1
 MAINTAINERCLEANFILES = $(dist_man1_MANS)
 update_mans = \
-  $(AM_V_GEN)PATH="`pwd`/../tests$(PATH_SEPARATOR)$$PATH" && \
+  $(AM_V_GEN): && \
+  PATH="$(abs_top_builddir)/tests/wrap$(PATH_SEPARATOR)$$PATH" && \
   export PATH && \
   $(HELP2MAN) --output=$@
 $(dist_man1_MANS): $(top_srcdir)/configure.ac
@@ -72,7 +73,7 @@ dist_doc_DATA = $(srcdir)/amhello-1.0.tar.gz
 # configure in tests/.
 $(srcdir)/amhello-1.0.tar.gz: $(amhello_sources) $(top_srcdir)/configure.ac
        $(AM_V_GEN): && \
-       PATH="$(abs_top_builddir)/tests$(PATH_SEPARATOR)$$PATH" && \
+       PATH="$(abs_top_builddir)/tests/wrap$(PATH_SEPARATOR)$$PATH" && \
        export PATH && \
        $(am__cd) $(srcdir)/amhello && \
        ACLOCAL=aclocal-$(APIVERSION) && export ACLOCAL && \