]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Avoided gnu-ism in Makefiles
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 12 Dec 2013 06:54:41 +0000 (07:54 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 12 Dec 2013 06:54:41 +0000 (07:54 +0100)
Makefile.am
configure.ac
doc/manpages/Makefile.am

index 4fb7aa52ee8d1ced9a001902e8932449afe0c269..30ed1fb38e200b3a35cfac87d54c7cb12ce24558 100644 (file)
@@ -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
index b042cdd4fd7a8975ad10445539159987dc8d9c95..2074e96fb363a20489fc7dab496b7039c7a101b8 100644 (file)
@@ -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
index 32131aef8170542bdf6d9567f4b8636d39894479..a9f1c37bad5dbc9f3d3c20d390ce1c8537f6325c 100644 (file)
@@ -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=""; \