diff options
| author | Glenn Morris | 2013-06-19 00:01:22 -0700 |
|---|---|---|
| committer | Glenn Morris | 2013-06-19 00:01:22 -0700 |
| commit | 09af5c3e89979e90113f4c21eb8cb5cfe3ff9a07 (patch) | |
| tree | cdec7a5bd19fd10f7ad7232891337d213f602cd3 | |
| parent | fc4893ebe8a19eec66fd842ffe1e8237417ff769 (diff) | |
| download | emacs-09af5c3e89979e90113f4c21eb8cb5cfe3ff9a07.tar.gz emacs-09af5c3e89979e90113f4c21eb8cb5cfe3ff9a07.zip | |
Add make dist rule for doc/misc/Makefile, for www.gnu.org
* doc/misc/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.
| -rw-r--r-- | doc/misc/ChangeLog | 8 | ||||
| -rw-r--r-- | doc/misc/Makefile.in | 27 |
2 files changed, 34 insertions, 1 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 0837c8e06f2..0f45b7ccfd7 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2013-06-19 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (version): New, set by configure. | ||
| 4 | (clean): Delete dist tar file. | ||
| 5 | (infoclean): New, split from maintainer-clean. | ||
| 6 | (maintainer-clean): Run infoclean. | ||
| 7 | (dist): New rule, to make tarfile for www.gnu.org. | ||
| 8 | |||
| 1 | 2013-06-13 Albert Krewinkel <tarleb@moltkeplatz.de> | 9 | 2013-06-13 Albert Krewinkel <tarleb@moltkeplatz.de> |
| 2 | 10 | ||
| 3 | * sieve.texi: (Managing Sieve): Fix port in example, fix documentation | 11 | * sieve.texi: (Managing Sieve): Fix port in example, fix documentation |
diff --git a/doc/misc/Makefile.in b/doc/misc/Makefile.in index add1b42a545..c994a748ce9 100644 --- a/doc/misc/Makefile.in +++ b/doc/misc/Makefile.in | |||
| @@ -24,6 +24,8 @@ SHELL = /bin/sh | |||
| 24 | # set by the configure script's `--srcdir' option. | 24 | # set by the configure script's `--srcdir' option. |
| 25 | srcdir=@srcdir@ | 25 | srcdir=@srcdir@ |
| 26 | 26 | ||
| 27 | version=@version@ | ||
| 28 | |||
| 27 | ## Where the output files go. | 29 | ## Where the output files go. |
| 28 | buildinfodir = $(srcdir)/../../info | 30 | buildinfodir = $(srcdir)/../../info |
| 29 | ## Directory with emacsver.texi. | 31 | ## Directory with emacsver.texi. |
| @@ -719,15 +721,38 @@ mostlyclean: | |||
| 719 | 721 | ||
| 720 | clean: mostlyclean | 722 | clean: mostlyclean |
| 721 | rm -f $(DVI_TARGETS) $(PDF_TARGETS) $(HTML_TARGETS) emacs-faq.text | 723 | rm -f $(DVI_TARGETS) $(PDF_TARGETS) $(HTML_TARGETS) emacs-faq.text |
| 724 | rm -f emacs-misc-${version}.tar* | ||
| 722 | 725 | ||
| 723 | distclean: clean | 726 | distclean: clean |
| 724 | # rm -f Makefile | 727 | # rm -f Makefile |
| 725 | 728 | ||
| 726 | ## buildinfodir is relative to srcdir. | 729 | ## buildinfodir is relative to srcdir. |
| 727 | maintainer-clean: distclean | 730 | infoclean: |
| 728 | cd $(buildinfodir); for file in $(INFO_TARGETS); do \ | 731 | cd $(buildinfodir); for file in $(INFO_TARGETS); do \ |
| 729 | file=`echo $${file} | sed 's/\.info$$//'`${INFO_EXT}; \ | 732 | file=`echo $${file} | sed 's/\.info$$//'`${INFO_EXT}; \ |
| 730 | rm -f $${file} $${file}-[1-9] $${file}-[1-9][0-9]; \ | 733 | rm -f $${file} $${file}-[1-9] $${file}-[1-9][0-9]; \ |
| 731 | done | 734 | done |
| 732 | 735 | ||
| 736 | maintainer-clean: distclean infoclean | ||
| 737 | |||
| 738 | dist: | ||
| 739 | rm -rf emacs-misc-${version} | ||
| 740 | mkdir emacs-misc-${version} | ||
| 741 | cp ${srcdir}/*.texi ${srcdir}/texinfo.tex \ | ||
| 742 | $(emacsdir)/emacsver.texi ${srcdir}/ChangeLog* \ | ||
| 743 | emacs-misc-${version}/ | ||
| 744 | sed -e 's/@sr[c]dir@/./' \ | ||
| 745 | -e 's/^\(emacsdir *=\).*/\1 ./' \ | ||
| 746 | -e 's/^\(buildinfodir *=\).*/\1 ./' \ | ||
| 747 | -e 's/^\(clean:.*\)/\1 infoclean/' \ | ||
| 748 | -e "s/@ver[s]ion@/${version}/" \ | ||
| 749 | -e 's/@MAKE[I]NFO@/makeinfo/' -e 's/@MK[D]IR_P@/mkdir -p/' \ | ||
| 750 | -e 's/@IN[F]O_EXT@/.info/' -e 's/@IN[F]O_OPTS@//' \ | ||
| 751 | ${srcdir}/Makefile.in > emacs-misc-${version}/Makefile | ||
| 752 | @if grep '@[a-zA-Z_]*@' emacs-misc-${version}/Makefile; then \ | ||
| 753 | echo "Unexpanded configure variables in Makefile?" 1>&2; exit 1; \ | ||
| 754 | fi | ||
| 755 | tar -cf emacs-misc-${version}.tar emacs-misc-${version} | ||
| 756 | rm -rf emacs-misc-${version} | ||
| 757 | |||
| 733 | ### Makefile ends here | 758 | ### Makefile ends here |