diff top/maint.mk @ 17527:909b44293f8e

maint.mk: fix "release" target to build _version This fixes a bug in README-release whereby following the outlined steps, one would publish a tarball whose programs would report --version output not consistent with the package version number. This bug caused grep-2.15 to produce a grep program whose --version option made it print 2.14.56-1e3d rather than 2.15. * top/maint.mk (release): Making this target build "_version" ensures that the new version number is reflected in configure.
author Jim Meyering <meyering@fb.com>
date Sat, 26 Oct 2013 19:26:13 -0700
parents 310e9dd2bdf0
children 5a97f701bcef
line wrap: on
line diff
--- a/top/maint.mk	Sun Oct 27 14:08:08 2013 +1300
+++ b/top/maint.mk	Sat Oct 26 19:26:13 2013 -0700
@@ -1424,6 +1424,7 @@
 	$(AM_V_at)$(MAKE) -s emit_upload_commands RELEASE_TYPE=$@
 
 release:
+	$(AM_V_GEN)$(MAKE) _version
 	$(AM_V_GEN)$(MAKE) $(release-type)
 
 # Override this in cfg.mk if you follow different procedures.