summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-12-12 07:54:41 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-12-12 07:58:36 +0100
commit62c4d49bf2e8a25e391217b8b61222e76c602b75 (patch)
treed92b3c0e019045c8f7916d61d9867437b9bc7e41
parent80265028d97fe425076d95bcbeceefca81f99d78 (diff)
downloadgnutls-62c4d49bf2e8a25e391217b8b61222e76c602b75.tar.gz
Avoided gnu-ism in Makefiles
-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 2abc936ee0..daae758a61 100644
--- a/configure.ac
+++ b/configure.ac
@@ -614,6 +614,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=""; \