Handle automake.texi
authorTom Tromey <tromey@redhat.com>
Fri, 17 Nov 1995 08:15:05 +0000 (08:15 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 17 Nov 1995 08:15:05 +0000 (08:15 +0000)
Makefile.am
lib/am/Makefile.am

index 8a9f477..e7138dd 100644 (file)
@@ -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
index 8a9f477..e7138dd 100644 (file)
@@ -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