summaryrefslogtreecommitdiff
path: root/top/GNUmakefile
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2008-08-02 10:23:16 +0200
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2008-08-02 11:19:52 +0200
commit837e2dc24dd3f7d0af45714f4b660c5ce57becec (patch)
tree2ca3c7bb0b0e34d546aabbf4db8224460972ac39 /top/GNUmakefile
parent4eb59b32a2a687c113f3c0dfc166fc2573acb84f (diff)
downloadgnulib-837e2dc24dd3f7d0af45714f4b660c5ce57becec.tar.gz
Portability fix for GNU make 3.79.1.
* top/GNUmakefile: Avoid 'else COND', which older GNU make versions do not understand.
Diffstat (limited to 'top/GNUmakefile')
-rw-r--r--top/GNUmakefile26
1 files changed, 14 insertions, 12 deletions
diff --git a/top/GNUmakefile b/top/GNUmakefile
index ea5e72c44e..8b64c49dd9 100644
--- a/top/GNUmakefile
+++ b/top/GNUmakefile
@@ -62,19 +62,21 @@ ifeq ($(_have-git-version-gen)0,yes$(MAKELEVEL))
ifneq ($(_curr-ver),$(VERSION))
ifeq ($(_curr-ver),UNKNOWN)
$(info WARNING: unable to verify if $(VERSION) is correct version)
- else ifneq (,$(_is-install-target))
- # GNU Coding Standards state that 'make install' should not cause
- # recompilation after 'make all'. But as long as changing the version
- # string alters config.h, the cost of having 'make all' always have an
- # up-to-date version is prohibitive. So, as a compromise, we merely
- # warn when installing a version string that is out of date; the user
- # should run 'autoreconf' (or something like 'make distcheck') to
- # fix the version, 'make all' to propagate it, then 'make install'.
- $(info WARNING: version string $(VERSION) is out of date; run autoreconf -f to fix it)
else
- $(info INFO: running autoreconf for new version string: $(_curr-ver))
- _dummy := $(shell cd $(srcdir) && rm -rf autom4te.cache .version \
- && $(_autoreconf))
+ ifneq (,$(_is-install-target))
+ # GNU Coding Standards state that 'make install' should not cause
+ # recompilation after 'make all'. But as long as changing the version
+ # string alters config.h, the cost of having 'make all' always have an
+ # up-to-date version is prohibitive. So, as a compromise, we merely
+ # warn when installing a version string that is out of date; the user
+ # should run 'autoreconf' (or something like 'make distcheck') to
+ # fix the version, 'make all' to propagate it, then 'make install'.
+ $(info WARNING: version string $(VERSION) is out of date; run autoreconf -f to fix it)
+ else
+ $(info INFO: running autoreconf for new version string: $(_curr-ver))
+ _dummy := $(shell cd $(srcdir) && rm -rf autom4te.cache .version \
+ && $(_autoreconf))
+ endif
endif
endif
endif