One more for non-srcdir "make dist".
authorJim Meyering <meyering@redhat.com>
Sun, 2 Mar 2008 15:33:53 +0000 (16:33 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 2 Mar 2008 15:33:53 +0000 (16:33 +0100)
* GNUmakefile: Also cd $(srcdir) before running autoreconf.

GNUmakefile

index f8aad63..9f4c73d 100644 (file)
@@ -51,7 +51,7 @@ ifeq (0,$(MAKELEVEL))
                    $(srcdir)/.tarball-version)
     ifneq ($(_curr-ver),$(VERSION))
       $(info INFO: running autoreconf for new version string: $(_curr-ver))
-      _dummy := $(shell rm -rf autom4te.cache; autoreconf)
+      _dummy := $(shell rm -rf autom4te.cache; (cd $(srcdir) && autoreconf))
       _created_version_file = 1
     endif
   endif