diff options
| author | Glenn Morris | 2010-10-05 19:26:38 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-10-05 19:26:38 -0700 |
| commit | 4c83f6e1e2a63ea1b16fd1e35a7790b5c5ed5e1f (patch) | |
| tree | 5cb5f6f5e563f489e8bf107e023615694e279e92 /doc/lispintro | |
| parent | c640fcd1529b08e5006b8064eead608b5164f288 (diff) | |
| download | emacs-4c83f6e1e2a63ea1b16fd1e35a7790b5c5ed5e1f.tar.gz emacs-4c83f6e1e2a63ea1b16fd1e35a7790b5c5ed5e1f.zip | |
Misc cleanup for doc/*/Makefiles.
* doc/misc/Makefile.in (SHELL): Set it.
(info): Move the mkdir dependency to the individual info files.
(mostlyclean): Tidy up.
(clean): Only delete the specific dvi and pdf files.
(maintainer-clean): Be more restrictive in what we delete.
* doc/lispref/Makefile.in: Rearrange to more closely resemble
doc/emacs/Makefile.
(INSTALL_INFO): Remove unused variable.
(mostlyclean, infoclean, dist): New rules.
(clean): Delete dvi and pdf files.
(maintainer-clean): Remove elisp.oaux, use infoclean.
* doc/lispintro/Makefile.in (SHELL): Use /bin/sh, like every other Makefile.in.
(INFO_SOURCES, INFO_TARGETS, DVI_TARGETS): Remove variables.
($(infodir), html, pdf, infoclean, dist): New rules.
(${infodir}/eintr): Ensure $infodir exists. Use $@.
(emacs-lisp-intro.dvi, emacs-lisp-intro.pdf, emacs-lisp-intro.html): Use $^.
(.PHONY): Declare clean rules.
(mostlyclean): Delete more temp files.
(clean): Delete specific dvi, pdf and html files.
(maintainer-clean): Use infoclean.
(.NOEXPORT): Remove, unused by any other Makefile.in.
* doc/emacs/Makefile.in (EMACS_XTRA): Add the main source file.
(emacs-xtra.dvi, emacs-xtra.pdf): Remove explicit emacs-xtra.texi.
(mostlyclean): No core files, reorder other files.
(clean): Delete specific dvi and pdf files.
(infoclean, dist): New rules.
(maintainer-clean): Use infoclean.
Diffstat (limited to 'doc/lispintro')
| -rw-r--r-- | doc/lispintro/ChangeLog | 14 | ||||
| -rw-r--r-- | doc/lispintro/Makefile.in | 70 |
2 files changed, 57 insertions, 27 deletions
diff --git a/doc/lispintro/ChangeLog b/doc/lispintro/ChangeLog index ff227a1f119..c8550e5db73 100644 --- a/doc/lispintro/ChangeLog +++ b/doc/lispintro/ChangeLog | |||
| @@ -1,3 +1,17 @@ | |||
| 1 | 2010-10-06 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (SHELL): Use /bin/sh, like every other Makefile.in. | ||
| 4 | (INFO_SOURCES, INFO_TARGETS, DVI_TARGETS): Remove variables. | ||
| 5 | ($(infodir), html, pdf, infoclean, dist): New rules. | ||
| 6 | (${infodir}/eintr): Ensure $infodir exists. Use $@. | ||
| 7 | (emacs-lisp-intro.dvi, emacs-lisp-intro.pdf, emacs-lisp-intro.html): | ||
| 8 | Use $^. | ||
| 9 | (.PHONY): Declare clean rules. | ||
| 10 | (mostlyclean): Delete more temp files. | ||
| 11 | (clean): Delete specific dvi, pdf and html files. | ||
| 12 | (maintainer-clean): Use infoclean. | ||
| 13 | (.NOEXPORT): Remove, unused by any other Makefile.in. | ||
| 14 | |||
| 1 | 2010-09-21 Glenn Morris <rgm@gnu.org> | 15 | 2010-09-21 Glenn Morris <rgm@gnu.org> |
| 2 | 16 | ||
| 3 | * cons-1.eps, cons-2.eps, cons-2a.eps, cons-3.eps, cons-4.eps: | 17 | * cons-1.eps, cons-2.eps, cons-2a.eps, cons-3.eps, cons-4.eps: |
diff --git a/doc/lispintro/Makefile.in b/doc/lispintro/Makefile.in index d834ef70889..14103b8a26d 100644 --- a/doc/lispintro/Makefile.in +++ b/doc/lispintro/Makefile.in | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | #### Makefile for the Emacs Lisp Introduction manual | 1 | #### Makefile for the Emacs Lisp Introduction manual |
| 2 | 2 | ||
| 3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003, | 3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003, |
| 4 | # 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | # 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
| 5 | # Free Software Foundation, Inc. | ||
| 5 | 6 | ||
| 6 | # This file is part of GNU Emacs. | 7 | # This file is part of GNU Emacs. |
| 7 | 8 | ||
| @@ -18,8 +19,7 @@ | |||
| 18 | # You should have received a copy of the GNU General Public License | 19 | # You should have received a copy of the GNU General Public License |
| 19 | # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | 20 | # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
| 20 | 21 | ||
| 21 | 22 | SHELL = /bin/sh | |
| 22 | SHELL = @SHELL@ | ||
| 23 | 23 | ||
| 24 | srcdir = @srcdir@ | 24 | srcdir = @srcdir@ |
| 25 | VPATH = @srcdir@ | 25 | VPATH = @srcdir@ |
| @@ -28,12 +28,6 @@ infodir = ../../info | |||
| 28 | # Directory with the (customized) texinfo.tex file. | 28 | # Directory with the (customized) texinfo.tex file. |
| 29 | texinfodir = $(srcdir)/../misc | 29 | texinfodir = $(srcdir)/../misc |
| 30 | 30 | ||
| 31 | INFO_SOURCES = ${srcdir}/emacs-lisp-intro.texi | ||
| 32 | # The file name eintr must fit within 5 characters, to allow for | ||
| 33 | # -NN extensions to fit into DOS 8+3 limits without clashing | ||
| 34 | INFO_TARGETS = ${infodir}/eintr | ||
| 35 | DVI_TARGETS = emacs-lisp-intro.dvi | ||
| 36 | |||
| 37 | MAKEINFO = makeinfo | 31 | MAKEINFO = makeinfo |
| 38 | TEXI2DVI = texi2dvi | 32 | TEXI2DVI = texi2dvi |
| 39 | TEXI2PDF = texi2pdf | 33 | TEXI2PDF = texi2pdf |
| @@ -41,37 +35,59 @@ DVIPS = dvips | |||
| 41 | 35 | ||
| 42 | .SUFFIXES: .dvi .ps .texi | 36 | .SUFFIXES: .dvi .ps .texi |
| 43 | 37 | ||
| 44 | info: $(INFO_TARGETS) | 38 | info: ${infodir}/eintr |
| 39 | |||
| 40 | $(infodir): | ||
| 41 | mkdir $@ | ||
| 45 | 42 | ||
| 46 | dvi: $(DVI_TARGETS) | 43 | dvi: emacs-lisp-intro.dvi |
| 44 | html: emacs-lisp-intro.html | ||
| 45 | pdf: emacs-lisp-intro.pdf | ||
| 47 | 46 | ||
| 48 | ${infodir}/eintr: ${INFO_SOURCES} | 47 | # The file name eintr must fit within 5 characters, to allow for |
| 49 | cd $(srcdir); $(MAKEINFO) emacs-lisp-intro.texi -o $(infodir)/eintr | 48 | # -NN extensions to fit into DOS 8+3 limits without clashing. |
| 49 | ${infodir}/eintr: $(infodir) ${srcdir}/emacs-lisp-intro.texi | ||
| 50 | cd $(srcdir); $(MAKEINFO) emacs-lisp-intro.texi -o $@ | ||
| 50 | 51 | ||
| 51 | emacs-lisp-intro.dvi: ${INFO_SOURCES} | 52 | emacs-lisp-intro.dvi: ${srcdir}/emacs-lisp-intro.texi |
| 52 | $(TEXI2DVI) -I $(srcdir) -I $(texinfodir) $(srcdir)/emacs-lisp-intro.texi | 53 | $(TEXI2DVI) -I $(srcdir) -I $(texinfodir) $^ |
| 53 | 54 | ||
| 54 | emacs-lisp-intro.pdf: ${INFO_SOURCES} | 55 | emacs-lisp-intro.pdf: ${srcdir}/emacs-lisp-intro.texi |
| 55 | $(TEXI2PDF) -I $(srcdir) -I $(texinfodir) $(srcdir)/emacs-lisp-intro.texi | 56 | $(TEXI2PDF) -I $(srcdir) -I $(texinfodir) $^ |
| 56 | 57 | ||
| 57 | emacs-lisp-intro.html: $(INFO_SOURCES) | 58 | emacs-lisp-intro.html: ${srcdir}/emacs-lisp-intro.texi |
| 58 | $(MAKEINFO) --html -o $@ $(srcdir)/emacs-lisp-intro.texi | 59 | $(MAKEINFO) --html -o $@ $^ |
| 59 | 60 | ||
| 60 | .dvi.ps: | 61 | .dvi.ps: |
| 61 | $(DVIPS) $< -o $@ | 62 | $(DVIPS) $< -o $@ |
| 62 | 63 | ||
| 64 | .PHONY: mostlyclean clean distclean maintainer-clean infoclean | ||
| 65 | |||
| 63 | mostlyclean: | 66 | mostlyclean: |
| 64 | rm -f *.log *.cp *.fn *.ky *.pg *.vr *.tp | 67 | rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \ |
| 68 | *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs | ||
| 65 | 69 | ||
| 66 | clean: mostlyclean | 70 | clean: mostlyclean |
| 67 | rm -f *.dvi | 71 | rm -f emacs-lisp-intro.dvi emacs-lisp-intro.pdf |
| 72 | rm -rf emacs-lisp-intro.html/ | ||
| 68 | 73 | ||
| 69 | distclean: clean | 74 | distclean: clean |
| 70 | 75 | ||
| 71 | maintainer-clean: distclean | 76 | infoclean: |
| 72 | rm -f *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc | 77 | -cd $(infodir) && rm -f eintr eintr-[1-9] |
| 73 | cd $(infodir); rm -f eintr eintr-[1-9] | 78 | |
| 79 | maintainer-clean: distclean infoclean | ||
| 80 | |||
| 81 | dist: | ||
| 82 | rm -rf lispintro | ||
| 83 | mkdir lispintro | ||
| 84 | cp ${srcdir}/*.texi ${srcdir}/*.eps ${srcdir}/*.pdf \ | ||
| 85 | ${texinfodir}/texinfo.tex \ | ||
| 86 | ${srcdir}/ChangeLog* ${srcdir}/README lispintro/ | ||
| 87 | sed -e 's/@sr[c]dir@/./' -e 's/\(texinfodir *=\).*/\1 ./' \ | ||
| 88 | -e 's/\(infodir *=\).*/\1 ./' -e 's/^\(clean:.*\)/\1 infoclean/' \ | ||
| 89 | ${srcdir}/Makefile.in > lispintro/Makefile | ||
| 90 | tar -cf emacs-lisp-intro-texi.tar lispintro | ||
| 91 | rm -rf lispintro | ||
| 74 | 92 | ||
| 75 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | 93 | ### Makefile ends here |
| 76 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
| 77 | .NOEXPORT: | ||