diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-07-22 15:56:33 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-07-22 15:56:33 +0200 |
commit | 77e704cfa6de4bafb45e73453ee44aa9221f2b26 (patch) | |
tree | 7a57bf29f5e775b8946207626183d3d426e63b92 /GNUmakefile | |
parent | ebe2fa035ad0f1cca63d2c2fb378fe93356d1932 (diff) | |
download | gnutls-77e704cfa6de4bafb45e73453ee44aa9221f2b26.tar.gz |
Update gnulib files.
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile index 31bd873fad..ea5e72c44e 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -55,12 +55,22 @@ _have-git-version-gen := \ ifeq ($(_have-git-version-gen)0,yes$(MAKELEVEL)) _is-dist-target = $(filter-out %clean, \ $(filter maintainer-% dist% alpha beta major,$(MAKECMDGOALS))) - ifneq (,$(_is-dist-target)) + _is-install-target = $(filter-out %check, $(filter install%,$(MAKECMDGOALS))) + ifneq (,$(_is-dist-target)$(_is-install-target)) _curr-ver := $(shell cd $(srcdir) \ && $(_build-aux)/git-version-gen .tarball-version) 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 \ |