m4-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

generate .version in srcdir


From: Ralf Wildenhues
Subject: generate .version in srcdir
Date: Sat, 8 Mar 2008 14:16:54 +0100
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

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  <address@hidden>

        * 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]