Avoid new "make distcheck" failure, now that VPATH has GNUmakefile.
authorJim Meyering <meyering@redhat.com>
Wed, 5 Mar 2008 09:33:03 +0000 (10:33 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 5 Mar 2008 09:36:21 +0000 (10:36 +0100)
* GNUmakefile: Remove commands to create ".version".
They were unnecessary, and caused creation of a newer .version
file in a VPATH build, which in turn caused creation of updated
man/*.1 files reflecting the newer time stamp on .version.
Those *.1 files were not removed (since they're distributed), and
the fact that they remained after "distclean" triggered the failure.

Signed-off-by: Jim Meyering <meyering@redhat.com>
GNUmakefile

index 95758f5..719cfad 100644 (file)
@@ -53,19 +53,10 @@ ifeq (0,$(MAKELEVEL))
     ifneq ($(_curr-ver),$(VERSION))
       $(info INFO: running autoreconf for new version string: $(_curr-ver))
       _dummy := $(shell rm -rf autom4te.cache; (cd $(srcdir) && autoreconf))
-      _created_version_file = 1
     endif
   endif
 endif
 
-ifneq ($(_curr-ver),$(VERSION))
-  _dummy := $(shell echo $(_curr-ver) > .version)
-endif
-
-ifneq ($(_created_version_file),1)
-  _dummy := $(shell test -f .version || echo $(VERSION) > .version)
-endif
-
 include $(srcdir)/Makefile.cfg
 include $(srcdir)/Makefile.maint