From 35f791037ccae7ff885f795483fa3acd0fbd09ab Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 17 Nov 1995 08:15:05 +0000 Subject: [PATCH] Handle automake.texi --- Makefile.am | 13 ++++++++++++- lib/am/Makefile.am | 13 ++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 8a9f477..e7138dd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,8 @@ SCRIPTS = automake DISTCLEANFILES = automake +TEXINFOS = automake.texi version.texi + amdatadir = $(datadir)/automake am_DATA = clean-kr.am clean.am compile-kr.am compile-vars.am compile.am \ dist-subd-top.am dist-subd-vars.am dist-subd.am dist-vars.am dist.am \ @@ -9,7 +11,7 @@ libraries.am library.am mans-vars.am mans.am program.am programs.am \ remake-hdr.am remake-subd.am remake.am subdirs.am tags.am tags-subd.am \ texinfos-vars.am texinfos.am -DIST_OTHER = automake.in $(am_DATA) +DIST_OTHER = automake.in stamp-vti $(am_DATA) DIST_SUBDIRS = RCS samples install:: $(am_DATA) @@ -20,3 +22,12 @@ install:: $(am_DATA) automake: automake.in CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status + +version.texi: stamp-vti +stamp-vti: automake.texi configure.in + echo "@set UPDATED `date -r $(srcdir)/automake.texi '+%B %Y'`" \ + > version.tmp + echo "@set VERSION $(VERSION)" >> version.tmp + if cmp -s version.tmp $(srcdir)/version.texi; then rm version.tmp; \ + else mv version.tmp $(srcdir)/version.texi; fi + touch $(srcdir)/stamp-vti diff --git a/lib/am/Makefile.am b/lib/am/Makefile.am index 8a9f477..e7138dd 100644 --- a/lib/am/Makefile.am +++ b/lib/am/Makefile.am @@ -1,6 +1,8 @@ SCRIPTS = automake DISTCLEANFILES = automake +TEXINFOS = automake.texi version.texi + amdatadir = $(datadir)/automake am_DATA = clean-kr.am clean.am compile-kr.am compile-vars.am compile.am \ dist-subd-top.am dist-subd-vars.am dist-subd.am dist-vars.am dist.am \ @@ -9,7 +11,7 @@ libraries.am library.am mans-vars.am mans.am program.am programs.am \ remake-hdr.am remake-subd.am remake.am subdirs.am tags.am tags-subd.am \ texinfos-vars.am texinfos.am -DIST_OTHER = automake.in $(am_DATA) +DIST_OTHER = automake.in stamp-vti $(am_DATA) DIST_SUBDIRS = RCS samples install:: $(am_DATA) @@ -20,3 +22,12 @@ install:: $(am_DATA) automake: automake.in CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status + +version.texi: stamp-vti +stamp-vti: automake.texi configure.in + echo "@set UPDATED `date -r $(srcdir)/automake.texi '+%B %Y'`" \ + > version.tmp + echo "@set VERSION $(VERSION)" >> version.tmp + if cmp -s version.tmp $(srcdir)/version.texi; then rm version.tmp; \ + else mv version.tmp $(srcdir)/version.texi; fi + touch $(srcdir)/stamp-vti -- 2.7.4