(terminal-init-xterm): Use delete-terminal-functions.
[emacs.git] / etc / refcards / Makefile
blob4d3527eba972ebe32657a77067643d4e2184db16
1 ### Makefile for Emacs refcards
3 ## Copyright (C) 1993, 1994, 2001, 2002, 2003, 2004, 2005, 2006,
4 ## 2007, 2008 Free Software Foundation, Inc.
6 ## This file is part of GNU Emacs.
8 ## GNU Emacs is free software; you can redistribute it and/or modify
9 ## it under the terms of the GNU General Public License as published by
10 ## the Free Software Foundation; either version 3, or (at your option)
11 ## any later version.
13 ## GNU Emacs is distributed in the hope that it will be useful,
14 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ## GNU General Public License for more details.
18 ## You should have received a copy of the GNU General Public License
19 ## along with GNU Emacs; see the file COPYING. If not, write to the
20 ## Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 ## Boston, MA 02110-1301, USA.
24 ## Top-level targets.
26 ## PDF files that are included with Emacs.
27 all: refcards_pdf dired-refcards_pdf misc-refcards_pdf
29 REFCARDS_PDF = refcard.pdf cs-refcard.pdf de-refcard.pdf fr-refcard.pdf \
30 pl-refcard.pdf pt-br-refcard.pdf ru-refcard.pdf sk-refcard.pdf
31 refcards_pdf: ${REFCARDS_PDF}
32 refcards_ps: ${REFCARDS_PDF:.pdf=.ps}
34 DIRED-REFCARDS_PDF = dired-ref.pdf cs-dired-ref.pdf fr-dired-ref.pdf \
35 sk-dired-ref.pdf
36 dired-refcards_pdf: ${DIRED-REFCARDS_PDF}
37 dired-refcards_ps: ${DIRED-REFCARDS_PDF:.pdf=.ps}
39 MISC-REFCARDS_PDF = calccard.pdf gnus-booklet.pdf gnus-refcard.pdf orgcard.pdf
40 misc-refcards_pdf: ${MISC-REFCARDS_PDF}
41 misc-refcards_ps: ${MISC-REFCARDS_PDF:.pdf=.ps}
44 ## The following files are not included with Emacs.
45 SURVIVAL-CARDS_PDF = survival.pdf cs-survival.pdf sk-survival.pdf
46 survival-cards_pdf: ${SURVIVAL-CARDS_PDF}
47 survival-cards_ps: ${SURVIVAL-CARDS_PDF:.pdf=.ps}
49 VIPER-CARDS_PDF = vipcard.pdf viperCard.pdf
50 viper-cards_pdf: ${VIPER-CARDS_PDF}
51 viper-cards_ps: ${VIPER-CARDS_PDF:.pdf=.ps}
54 ## PDF files.
56 ## The page layouts (a4/letter) are written directly in the .tex files.
58 cs-refcard.pdf cs-dired-ref.pdf cs-survival.pdf sk-refcard.pdf \
59 sk-dired-ref.pdf sk-survival.pdf: %.pdf: %.tex
60 csplain "\pdfoutput=1\input $<"
62 pl-refcard.pdf: %.pdf: %.tex
63 if ! kpsewhich -format=fmt mex > /dev/null; then \
64 echo "No mex format found."; false; \
66 pdftex $<
68 ru-refcard.pdf: %.pdf: %.tex
69 pdflatex $<
71 gnus-logo.pdf: %.pdf: %.eps
72 ps2pdf $<
74 gnus-refcard.pdf: %.pdf: %.tex gnus-logo.pdf
75 pdflatex $<
77 gnus-booklet.pdf: gnus-refcard.tex gnus-logo.pdf
78 pdflatex '\def\booklettrue{}\def\letterpapertrue{}\input{gnus-refcard}'
79 mv gnus-refcard.pdf $@
81 ## Everything not explicitly listed above.
82 %.pdf: %.tex
83 pdftex $<
87 ## dvi files.
89 cs-refcard.dvi cs-dired-ref.dvi cs-survival.dvi sk-refcard.dvi \
90 sk-dired-ref.dvi sk-survival.dvi: %.dvi: %.tex
91 csplain $<
93 pl-refcard.dvi: %.dvi: %.tex
94 if ! kpsewhich -format=fmt mex > /dev/null; then \
95 echo "No mex format found."; false; \
97 tex $<
99 ru-refcard.dvi gnus-refcard.dvi: %.dvi: %.tex
100 latex $<
102 gnus-booklet.dvi: gnus-refcard.tex
103 latex '\def\booklettrue{}\def\letterpapertrue{}\input{gnus-refcard}'
104 mv gnus-refcard.dvi $@
106 ## Everything not explicitly listed above.
107 %.dvi: %.tex
108 tex $<
111 ## PostScript files.
113 ## Note that some of the tex files (refcard, de-refcard, fr-refcard,
114 ## pt-br-refcard) have settings for letter or a4 paper. Following are
115 ## the default paper sizes (letter for English, A4 for translations).
116 ## FIXME orgcard.ps does not fit on letter (see orgcard.tex).
118 ## A4, landscape.
119 de-refcard.ps fr-refcard.ps pt-br-refcard.ps orgcard.ps: %.ps: %.dvi
120 dvips -t a4 -t landscape $< -o $@
122 ## A4, portrait.
123 cs-dired-ref.ps cs-refcard.ps cs-survival.ps fr-dired-ref.ps \
124 pl-refcard.ps ru-refcard.ps \
125 sk-dired-ref.ps sk-refcard.ps sk-survival.ps: %.ps: %.dvi
126 dvips -t a4 $< -o $@
128 ## letter, landscape.
129 calccard.ps refcard.ps: %.ps: %.dvi
130 dvips -t letter -t landscape $< -o $@
132 ## letter, portrait.
133 dired-ref.ps gnus-booklet.ps gnus-refcard.ps survival.ps vipcard.ps \
134 viperCard.ps: %.ps: %.dvi
135 dvips -t letter $< -o $@
138 .PHONY: clean
140 clean:
141 -rm -f *.dvi *.log
143 ### Makefile ends here