generate .version in srcdir

Ralf Wildenhues <[email protected]>
Newsgroups gmane.comp.gnu.m4.patches
Organization Department of Numerical Simulation, University of Bonn
Message-ID <[email protected]>
Hello Eric, Gary,

this fixes a distcheck failure in branch-1_4.  But maybe you're going to
rewrite GNUmakefile further anyway, in which case you may just want to
ignore this patch.  ;-)

Cheers,
Ralf

2008-03-08  Ralf Wildenhues  <[email protected]>

	* GNUmakefile: Generate .version in $(srcdir).

diff --git a/GNUmakefile b/GNUmakefile
index 1477e08..8e07778 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -62,11 +62,11 @@ ifeq (0,$(MAKELEVEL))
 endif
 
 ifneq ($(_curr-ver),$(VERSION))
-  _dummy := $(shell echo $(_curr-ver) > .version)
+  _dummy := $(shell echo $(_curr-ver) > $(srcdir)/.version)
 endif
 
 ifneq ($(_created_version_file),1)
-  _dummy := $(shell test -f .version || echo $(VERSION) > .version)
+  _dummy := $(shell test -f .version || echo $(VERSION) > $(srcdir)/.version)
 endif
 
 include $(srcdir)/Makefile.cfg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.