Mercurial > emacs
annotate doc/lispintro/Makefile.in @ 112442:76fa839f455e
* Makefile.in (MAKEINFO): Now controlled by `configure'.
(MAKEINFO_OPTS): New variable. Use it where appropriate.
(ENVADD): New variable to control texi2dvi and texi2pdf.
author | Werner Lemberg <wl@gnu.org> |
---|---|
date | Sun, 23 Jan 2011 11:22:21 +0100 |
parents | 61f7601898b1 |
children | 295000738bf5 |
rev | line source |
---|---|
83942 | 1 #### Makefile for the Emacs Lisp Introduction manual |
2 | |
105775 | 3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003, |
112284
61f7601898b1
Refill some copyright headers.
Glenn Morris <rgm@gnu.org>
parents:
112228
diff
changeset
|
4 # 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
61f7601898b1
Refill some copyright headers.
Glenn Morris <rgm@gnu.org>
parents:
112228
diff
changeset
|
5 # Free Software Foundation, Inc. |
83942 | 6 |
7 # This file is part of GNU Emacs. | |
8 | |
95034
38ec81da0a8b
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
87649
diff
changeset
|
9 # GNU Emacs is free software: you can redistribute it and/or modify |
83942 | 10 # it under the terms of the GNU General Public License as published by |
95034
38ec81da0a8b
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
87649
diff
changeset
|
11 # the Free Software Foundation, either version 3 of the License, or |
38ec81da0a8b
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
87649
diff
changeset
|
12 # (at your option) any later version. |
83942 | 13 |
14 # GNU Emacs is distributed in the hope that it will be useful, | |
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 # GNU General Public License for more details. | |
18 | |
19 # You should have received a copy of the GNU General Public License | |
95034
38ec81da0a8b
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
87649
diff
changeset
|
20 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
38ec81da0a8b
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
87649
diff
changeset
|
21 |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
22 SHELL = /bin/sh |
83942 | 23 |
24 srcdir = @srcdir@ | |
110794
bacdf2d96735
Include version number in doc `make dist' tarfiles.
Glenn Morris <rgm@gnu.org>
parents:
110786
diff
changeset
|
25 version=@version@ |
83942 | 26 |
110894
39eed86814a2
Replace use of VPATH in most doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110893
diff
changeset
|
27 infodir = $(srcdir)/../../info |
103790
649949326c56
(texinfodir): Rename from usermanualdir, and update.
Glenn Morris <rgm@gnu.org>
parents:
100974
diff
changeset
|
28 # Directory with the (customized) texinfo.tex file. |
649949326c56
(texinfodir): Rename from usermanualdir, and update.
Glenn Morris <rgm@gnu.org>
parents:
100974
diff
changeset
|
29 texinfodir = $(srcdir)/../misc |
83942 | 30 |
110913
1ba912b1a63c
Add explicit -I$srcdir to makeinfo in some doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110912
diff
changeset
|
31 MAKEINFO = makeinfo --force -I $(srcdir) |
83942 | 32 TEXI2DVI = texi2dvi |
105775 | 33 TEXI2PDF = texi2pdf |
83942 | 34 DVIPS = dvips |
35 | |
110894
39eed86814a2
Replace use of VPATH in most doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110893
diff
changeset
|
36 mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir} |
83942 | 37 |
110911
6d7021474f2e
Add ps rules for some doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110894
diff
changeset
|
38 .PHONY: info dvi html pdf ps |
83942 | 39 |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
40 info: ${infodir}/eintr |
83942 | 41 |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
42 dvi: emacs-lisp-intro.dvi |
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
43 html: emacs-lisp-intro.html |
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
44 pdf: emacs-lisp-intro.pdf |
110911
6d7021474f2e
Add ps rules for some doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110894
diff
changeset
|
45 ps: emacs-lisp-intro.ps |
83942 | 46 |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
47 # The file name eintr must fit within 5 characters, to allow for |
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
48 # -NN extensions to fit into DOS 8+3 limits without clashing. |
110882
b8bcd2311f78
Avoid having a directory as a prerequisite in doc Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110861
diff
changeset
|
49 ${infodir}/eintr: ${srcdir}/emacs-lisp-intro.texi |
b8bcd2311f78
Avoid having a directory as a prerequisite in doc Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110861
diff
changeset
|
50 $(mkinfodir) |
110912
2bfb6bf8a383
Add html targets for some doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110911
diff
changeset
|
51 $(MAKEINFO) -o $@ $< |
83942 | 52 |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
53 emacs-lisp-intro.dvi: ${srcdir}/emacs-lisp-intro.texi |
110887
951b5214e939
Use $< in some doc/*/Makefile rules.
Glenn Morris <rgm@gnu.org>
parents:
110886
diff
changeset
|
54 $(TEXI2DVI) -I $(srcdir) -I $(texinfodir) $< |
105775 | 55 |
110911
6d7021474f2e
Add ps rules for some doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110894
diff
changeset
|
56 emacs-lisp-intro.ps: emacs-lisp-intro.dvi |
6d7021474f2e
Add ps rules for some doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110894
diff
changeset
|
57 $(DVIPS) -o $@ $< |
83942 | 58 |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
59 emacs-lisp-intro.pdf: ${srcdir}/emacs-lisp-intro.texi |
110887
951b5214e939
Use $< in some doc/*/Makefile rules.
Glenn Morris <rgm@gnu.org>
parents:
110886
diff
changeset
|
60 $(TEXI2PDF) -I $(srcdir) -I $(texinfodir) $< |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
61 |
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
62 emacs-lisp-intro.html: ${srcdir}/emacs-lisp-intro.texi |
110887
951b5214e939
Use $< in some doc/*/Makefile rules.
Glenn Morris <rgm@gnu.org>
parents:
110886
diff
changeset
|
63 $(MAKEINFO) --html -o $@ $< |
83942 | 64 |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
65 .PHONY: mostlyclean clean distclean maintainer-clean infoclean |
83942 | 66 |
67 mostlyclean: | |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
68 rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \ |
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
69 *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs |
83942 | 70 |
71 clean: mostlyclean | |
110911
6d7021474f2e
Add ps rules for some doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110894
diff
changeset
|
72 rm -f emacs-lisp-intro.dvi emacs-lisp-intro.pdf emacs-lisp-intro.ps |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
73 rm -rf emacs-lisp-intro.html/ |
110794
bacdf2d96735
Include version number in doc `make dist' tarfiles.
Glenn Morris <rgm@gnu.org>
parents:
110786
diff
changeset
|
74 rm -f emacs-lispintro-${version}.tar* |
83942 | 75 |
76 distclean: clean | |
77 | |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
78 infoclean: |
110894
39eed86814a2
Replace use of VPATH in most doc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
110893
diff
changeset
|
79 -cd $(infodir) && rm -f eintr eintr-[1-9] |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
80 |
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
81 maintainer-clean: distclean infoclean |
83942 | 82 |
110861
ca28093784c4
Mark some doc/ rules as PHONY.
Glenn Morris <rgm@gnu.org>
parents:
110794
diff
changeset
|
83 .PHONY: dist |
83942 | 84 |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
85 dist: |
110794
bacdf2d96735
Include version number in doc `make dist' tarfiles.
Glenn Morris <rgm@gnu.org>
parents:
110786
diff
changeset
|
86 rm -rf emacs-lispintro-${version} |
bacdf2d96735
Include version number in doc `make dist' tarfiles.
Glenn Morris <rgm@gnu.org>
parents:
110786
diff
changeset
|
87 mkdir emacs-lispintro-${version} |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
88 cp ${srcdir}/*.texi ${srcdir}/*.eps ${srcdir}/*.pdf \ |
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
89 ${texinfodir}/texinfo.tex \ |
110794
bacdf2d96735
Include version number in doc `make dist' tarfiles.
Glenn Morris <rgm@gnu.org>
parents:
110786
diff
changeset
|
90 ${srcdir}/ChangeLog* ${srcdir}/README emacs-lispintro-${version}/ |
110893
485f4f9f69bd
Anchor regexps in doc/ `make dist' rules.
Glenn Morris <rgm@gnu.org>
parents:
110887
diff
changeset
|
91 sed -e 's/@sr[c]dir@/./' -e 's/^\(texinfodir *=\).*/\1 ./' \ |
485f4f9f69bd
Anchor regexps in doc/ `make dist' rules.
Glenn Morris <rgm@gnu.org>
parents:
110887
diff
changeset
|
92 -e 's/^\(infodir *=\).*/\1 ./' -e 's/^\(clean:.*\)/\1 infoclean/' \ |
110794
bacdf2d96735
Include version number in doc `make dist' tarfiles.
Glenn Morris <rgm@gnu.org>
parents:
110786
diff
changeset
|
93 -e "s/@ver[s]ion@/${version}/" \ |
bacdf2d96735
Include version number in doc `make dist' tarfiles.
Glenn Morris <rgm@gnu.org>
parents:
110786
diff
changeset
|
94 ${srcdir}/Makefile.in > emacs-lispintro-${version}/Makefile |
bacdf2d96735
Include version number in doc `make dist' tarfiles.
Glenn Morris <rgm@gnu.org>
parents:
110786
diff
changeset
|
95 tar -cf emacs-lispintro-${version}.tar emacs-lispintro-${version} |
bacdf2d96735
Include version number in doc `make dist' tarfiles.
Glenn Morris <rgm@gnu.org>
parents:
110786
diff
changeset
|
96 rm -rf emacs-lispintro-${version} |
110781
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
97 |
664402ada542
Misc cleanup for doc/*/Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
98 ### Makefile ends here |