diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-11-24 11:50:08 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-11-24 11:52:15 +0100 |
commit | d940bf3a7a5338a7547412317d4e13aa7350bf82 (patch) | |
tree | c20e15eb1e0cf380ad54312d17a318c7b989db9f /Makefile.am | |
parent | b34ee68051497b6cb28146cab9ec4a74c8b03347 (diff) | |
download | gnutls-d940bf3a7a5338a7547412317d4e13aa7350bf82.tar.gz |
handle centrally more variables
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index c902f95d2a..4fb7aa52ee 100644 --- a/Makefile.am +++ b/Makefile.am @@ -42,6 +42,7 @@ 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 @@ -50,6 +51,8 @@ dist-hook: make ChangeLog cp -f ChangeLog $(distdir)/ sed 's/\@VERSION\@/$(VERSION)/g' -i $(distdir)/src/args-std.def + sed 's/\@YEAR\@/$(YEAR)/g' -i $(distdir)/src/args-std.def + sed 's/\@PACKAGE_BUGREPORT\@/$(PACKAGE_BUGREPORT)/g' -i $(distdir)/src/args-std.def cd $(distdir)/src/ && for i in *.def;do \ if test x"$$i" = x"args-std.def";then continue; fi; \ autogen $$i; \ @@ -62,5 +65,4 @@ dist-hook: cd $(distdir)/src/ && for i in *-args.c *-args.h;do \ mv $$i $$i.bak; \ done - sed 's/\@\@VERSION\@\@/$(VERSION)/g' -i $(distdir)/doc/invoke-*.texi touch $(distdir)/doc/*.html $(distdir)/doc/*.pdf $(distdir)/doc/*.info |