Makefile.in 2.59 KB
Newer Older
Glenn Morris's avatar
Glenn Morris committed
1 2
#### Makefile for the Emacs Lisp Introduction manual

Glenn Morris's avatar
Glenn Morris committed
3
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003,
4 5
#   2004, 2005, 2006, 2007, 2008, 2009, 2010
#   Free Software Foundation, Inc.
Glenn Morris's avatar
Glenn Morris committed
6 7 8

# This file is part of GNU Emacs.

9
# GNU Emacs is free software: you can redistribute it and/or modify
Glenn Morris's avatar
Glenn Morris committed
10
# it under the terms of the GNU General Public License as published by
11 12
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
Glenn Morris's avatar
Glenn Morris committed
13 14 15 16 17 18 19

# GNU Emacs is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
20 21
# along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.

22
SHELL = /bin/sh
Glenn Morris's avatar
Glenn Morris committed
23 24 25 26

srcdir = @srcdir@
VPATH = @srcdir@

27
infodir = ../../info
28 29
# Directory with the (customized) texinfo.tex file.
texinfodir = $(srcdir)/../misc
Glenn Morris's avatar
Glenn Morris committed
30 31 32

MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
Glenn Morris's avatar
Glenn Morris committed
33
TEXI2PDF = texi2pdf
Glenn Morris's avatar
Glenn Morris committed
34 35 36 37
DVIPS = dvips

.SUFFIXES: .dvi .ps .texi

38 39 40 41
info: ${infodir}/eintr

$(infodir):
	mkdir $@
Glenn Morris's avatar
Glenn Morris committed
42

43 44 45
dvi: emacs-lisp-intro.dvi
html: emacs-lisp-intro.html
pdf: emacs-lisp-intro.pdf
Glenn Morris's avatar
Glenn Morris committed
46

47 48 49 50
# The file name eintr must fit within 5 characters, to allow for
# -NN extensions to fit into DOS 8+3 limits without clashing.
${infodir}/eintr: $(infodir) ${srcdir}/emacs-lisp-intro.texi
	cd $(srcdir); $(MAKEINFO) emacs-lisp-intro.texi -o $@
Glenn Morris's avatar
Glenn Morris committed
51

52 53
emacs-lisp-intro.dvi: ${srcdir}/emacs-lisp-intro.texi
	$(TEXI2DVI) -I $(srcdir) -I $(texinfodir) $^
Glenn Morris's avatar
Glenn Morris committed
54

55 56
emacs-lisp-intro.pdf: ${srcdir}/emacs-lisp-intro.texi
	$(TEXI2PDF) -I $(srcdir) -I $(texinfodir) $^
Glenn Morris's avatar
Glenn Morris committed
57

58 59
emacs-lisp-intro.html: ${srcdir}/emacs-lisp-intro.texi
	$(MAKEINFO) --html -o $@ $^
Glenn Morris's avatar
Glenn Morris committed
60 61 62 63

.dvi.ps:
	$(DVIPS) $< -o $@

64 65
.PHONY: mostlyclean clean distclean maintainer-clean infoclean

Glenn Morris's avatar
Glenn Morris committed
66
mostlyclean:
67 68
	rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \
	  *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs
Glenn Morris's avatar
Glenn Morris committed
69 70

clean: mostlyclean
71 72
	rm -f emacs-lisp-intro.dvi emacs-lisp-intro.pdf
	rm -rf emacs-lisp-intro.html/
Glenn Morris's avatar
Glenn Morris committed
73 74 75

distclean: clean

76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
infoclean:
	-cd $(infodir) && rm -f eintr eintr-[1-9]

maintainer-clean: distclean infoclean

dist:
	rm -rf lispintro
	mkdir lispintro
	cp ${srcdir}/*.texi ${srcdir}/*.eps ${srcdir}/*.pdf \
	  ${texinfodir}/texinfo.tex \
	  ${srcdir}/ChangeLog* ${srcdir}/README lispintro/
	sed -e 's/@sr[c]dir@/./' -e 's/\(texinfodir *=\).*/\1 ./' \
	  -e 's/\(infodir *=\).*/\1 ./' -e 's/^\(clean:.*\)/\1 infoclean/' \
	  ${srcdir}/Makefile.in > lispintro/Makefile
	tar -cf emacs-lisp-intro-texi.tar lispintro
	rm -rf lispintro
Glenn Morris's avatar
Glenn Morris committed
92

93
### Makefile ends here