diff doc/emacs/Makefile.in @ 110794:bacdf2d96735

Include version number in doc `make dist' tarfiles. * doc/lispref/Makefile.in (version): New, set by configure. (clean): Delete dist tar file. (dist): Use version in tar name. * doc/lispintro/Makefile.in (version): New, set by configure. (clean): Delete dist tar file. (dist): Use version in tar name. * doc/emacs/Makefile.in (version): New, set by configure. (clean): Delete dist tar file. (dist): Use version in tar name.
author Glenn Morris <rgm@gnu.org>
date Wed, 06 Oct 2010 19:23:28 -0700
parents 9a3ce1aa9d45
children ca28093784c4
line wrap: on
line diff
--- a/doc/emacs/Makefile.in	Wed Oct 06 14:02:39 2010 +0000
+++ b/doc/emacs/Makefile.in	Wed Oct 06 19:23:28 2010 -0700
@@ -28,6 +28,9 @@
 # Tell make where to find source files; this is needed for the makefiles.
 VPATH=@srcdir@
 
+# Only for make dist.
+version=@version@
+
 ## Where the output files go.
 ## Note that the setfilename command in the .texi files assumes this.
 infodir=../../info
@@ -148,6 +151,7 @@
 ## Products not in the release tarfiles.
 clean: mostlyclean
 	rm -f emacs.dvi emacs-xtra.dvi emacs.pdf emacs-xtra.pdf
+	rm -f emacs-manual-${version}.tar*
 
 distclean: clean
 
@@ -161,15 +165,16 @@
 ## The [c] is a dumb way to prevent configure expanding it.
 ## The emacs: rule becomes circular when we change infodir to ".".
 dist:
-	rm -rf emacs
-	mkdir emacs
+	rm -rf emacs-manual-${version}
+	mkdir emacs-manual-${version}
 	cp ${srcdir}/*.texi ${texinfodir}/texinfo.tex \
-	  ${srcdir}/ChangeLog* emacs/
+	  ${srcdir}/ChangeLog* emacs-manual-${version}/
 	sed -e 's/@sr[c]dir@/./' -e 's/\(texinfodir *=\).*/\1 ./' \
 	  -e 's/\(infodir *=\).*/\1 ./' -e '/^emacs *:/d' \
 	  -e 's/^\(clean:.*\)/\1 infoclean/' \
-	  ${srcdir}/Makefile.in > emacs/Makefile
-	tar -cf emacs-texi.tar emacs
-	rm -rf emacs
+	  -e "s/@ver[s]ion@/${version}/" \
+	  ${srcdir}/Makefile.in > emacs-manual-${version}/Makefile
+	tar -cf emacs-manual-${version}.tar emacs-manual-${version}
+	rm -rf emacs-manual-${version}
 
 ### Makefile ends here