From d8de5f64e94ea23b5f611ffc116f8fb5c7738dbe Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Wed, 8 Oct 2008 08:46:29 -0600 Subject: [PATCH] GNUmakefile: add 'make version' target * top/GNUmakefile (_curr-ver): Split version update rules... (version): ...into a target. Signed-off-by: Eric Blake --- ChangeLog | 10 ++++++++-- top/GNUmakefile | 10 +++++++--- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 931b308c9..744cd1be4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-10-08 Eric Blake + + GNUmakefile: add 'make version' target + * top/GNUmakefile (_curr-ver): Split version update rules... + (version): ...into a target. + 2008-10-07 Bruno Haible Use a more portable replacement expression for -0.0L. @@ -116,7 +122,7 @@ entire testsuite consistent and avoids an Irix 6.2 bug. 2008-10-05 Bruno Haible - Jim Meyering + Jim Meyering Add an option for ignoring EPIPE during close_stdout. * lib/closeout.h: Include . @@ -298,7 +304,7 @@ Reported by Rainer Tammer . 2008-10-03 Paolo Bonzini - Bruno Haible + Bruno Haible * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN. * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK. diff --git a/top/GNUmakefile b/top/GNUmakefile index 4b4cf15cf..7816416ee 100644 --- a/top/GNUmakefile +++ b/top/GNUmakefile @@ -71,17 +71,21 @@ ifeq ($(_have-git-version-gen)0,yes$(MAKELEVEL)) # 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) + $(info WARNING: version string $(VERSION) is out of date;) + $(info run '$(MAKE) version' to fix it) else $(info INFO: running autoreconf for new version string: $(_curr-ver)) - _dummy := $(shell cd $(srcdir) && rm -rf autom4te.cache .version \ - && $(_autoreconf)) + _dummy := $(shell $(MAKE) $(AM_MAKEFLAGS) version) endif endif endif endif endif +.PHONY: version +version: + cd $(srcdir) && rm -rf autom4te.cache .version && $(_autoreconf) + else .DEFAULT_GOAL := abort-due-to-no-makefile -- 2.11.0