diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2013-05-05 20:16:25 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2013-05-06 12:23:20 +0200 |
commit | f8ac780d14229e99d70b46b50e3d026e2c93a6a3 (patch) | |
tree | 1c0db4f8810bc89f37c48a4bfde96809cb117009 /configure.ac | |
parent | 3c5f3ba0691d524cc804aa187607b34fc312872c (diff) | |
download | autoconf-f8ac780d14229e99d70b46b50e3d026e2c93a6a3.tar.gz |
build: define RELEASE_YEAR with AC_SUBST
Rather than reading it dynamically from the ChangeLog -- that,
remember, is only a dummy in a Git checkout! To avoid risking
the definition to get out-of-sync, let's enhance the maintainer
target 'update-copyright' to update it automatically (the same
way it's done in the Automake build system).
* configure.ac (RELEASE_YEAR): New AC_SUBST'd variable.
* cfg.mk (update-release-year): New maintainer-specific target
to automatically update the value of that variable.
(update-copyright): Depend on the new target.
* bin/local.mk (RELEASE_YEAR): Drop definition.
(edit): Simplify quoting of $(RELEASE_YEAR).
* lib/Makefile.am (RELEASE_YEAR): Drop definition.
(m4sugar/version.m4): Simplify quoting of $(RELEASE_YEAR).
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index b3f3fa9c..91f6a74a 100644 --- a/configure.ac +++ b/configure.ac @@ -27,6 +27,11 @@ AC_CONFIG_AUX_DIR([build-aux]) AM_INIT_AUTOMAKE([1.11 dist-xz readme-alpha no-texinfo.tex std-options]) +# Keep this on a line of its own, since it must be found and processed +# by the 'update-release-year' rule in our Makefile. +RELEASE_YEAR=2013 +AC_SUBST([RELEASE_YEAR]) + AB_INIT # We use '/bin/sh -n script' to check that there are no syntax errors |