+2013-06-19 Glenn Morris <rgm@gnu.org>
+
+ * Makefile.in (version): New, set by configure.
+ (clean): Delete dist tar file.
+ (infoclean): New, split from maintainer-clean.
+ (maintainer-clean): Run infoclean.
+ (dist): New rule, to make tarfile for www.gnu.org.
+
2013-06-13 Albert Krewinkel <tarleb@moltkeplatz.de>
* sieve.texi: (Managing Sieve): Fix port in example, fix documentation
# set by the configure script's `--srcdir' option.
srcdir=@srcdir@
+version=@version@
+
## Where the output files go.
buildinfodir = $(srcdir)/../../info
## Directory with emacsver.texi.
clean: mostlyclean
rm -f $(DVI_TARGETS) $(PDF_TARGETS) $(HTML_TARGETS) emacs-faq.text
+ rm -f emacs-misc-${version}.tar*
distclean: clean
# rm -f Makefile
## buildinfodir is relative to srcdir.
-maintainer-clean: distclean
+infoclean:
cd $(buildinfodir); for file in $(INFO_TARGETS); do \
file=`echo $${file} | sed 's/\.info$$//'`${INFO_EXT}; \
rm -f $${file} $${file}-[1-9] $${file}-[1-9][0-9]; \
done
+maintainer-clean: distclean infoclean
+
+dist:
+ rm -rf emacs-misc-${version}
+ mkdir emacs-misc-${version}
+ cp ${srcdir}/*.texi ${srcdir}/texinfo.tex \
+ $(emacsdir)/emacsver.texi ${srcdir}/ChangeLog* \
+ emacs-misc-${version}/
+ sed -e 's/@sr[c]dir@/./' \
+ -e 's/^\(emacsdir *=\).*/\1 ./' \
+ -e 's/^\(buildinfodir *=\).*/\1 ./' \
+ -e 's/^\(clean:.*\)/\1 infoclean/' \
+ -e "s/@ver[s]ion@/${version}/" \
+ -e 's/@MAKE[I]NFO@/makeinfo/' -e 's/@MK[D]IR_P@/mkdir -p/' \
+ -e 's/@IN[F]O_EXT@/.info/' -e 's/@IN[F]O_OPTS@//' \
+ ${srcdir}/Makefile.in > emacs-misc-${version}/Makefile
+ @if grep '@[a-zA-Z_]*@' emacs-misc-${version}/Makefile; then \
+ echo "Unexpanded configure variables in Makefile?" 1>&2; exit 1; \
+ fi
+ tar -cf emacs-misc-${version}.tar emacs-misc-${version}
+ rm -rf emacs-misc-${version}
+
### Makefile ends here