summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am1
-rw-r--r--configure.ac4
-rw-r--r--doc/manpages/Makefile.am2
3 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 4fb7aa52ee..30ed1fb38e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -42,7 +42,6 @@ endif
ACLOCAL_AMFLAGS = -I m4 -I gl/m4 -I src/libopts/m4 -I src/gl/m4
EXTRA_DIST = cfg.mk maint.mk .clcopying
-YEAR=$(shell date +%Y)
dist-hook:
make -C doc/ compare-makefile
diff --git a/configure.ac b/configure.ac
index b042cdd4fd..2074e96fb3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -659,6 +659,10 @@ AM_CONDITIONAL(ENABLE_CRYWRAP, test "x$crywrap" != "xno")
dnl end of crywrap requirements
+dnl Some variables needed in makefiles
+YEAR=`date +%Y`
+AC_SUBST([YEAR], $YEAR)
+
AC_CONFIG_FILES([guile/pre-inst-guile], [chmod +x guile/pre-inst-guile])
AC_CONFIG_FILES([
Makefile
diff --git a/doc/manpages/Makefile.am b/doc/manpages/Makefile.am
index 32131aef81..a9f1c37bad 100644
--- a/doc/manpages/Makefile.am
+++ b/doc/manpages/Makefile.am
@@ -965,8 +965,6 @@ dist_man_MANS += $(APIMANS)
$(APIMANS): stamp_mans
-YEAR=$(shell date +%Y)
-
compare-makefile:
FUNCS=`cat $(top_srcdir)/lib/includes/gnutls/*.h | $(top_srcdir)/doc/scripts/getfuncs.pl|sort -d`; \
MANS=""; \