aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-08-22 08:17:11 +0000
committerGlenn Morris2007-08-22 08:17:11 +0000
commit869653856cf0fb959b66fe650c27acb910bd046b (patch)
treea6f134d894719289885fbf0dd9973b0834cc1595
parent6090e05ee7f1fbd6af1dbf0978b59d8a32e1dc05 (diff)
downloademacs-869653856cf0fb959b66fe650c27acb910bd046b.tar.gz
emacs-869653856cf0fb959b66fe650c27acb910bd046b.zip
New file, with existing refcard rules from etc/Makefile.
-rw-r--r--etc/ChangeLog3
-rw-r--r--etc/refcards/Makefile101
2 files changed, 103 insertions, 1 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog
index 1186e6d57aa..0f7631e21b1 100644
--- a/etc/ChangeLog
+++ b/etc/ChangeLog
@@ -3,12 +3,13 @@
3 * tree-widget: Move this directory into images/ subdirectory. 3 * tree-widget: Move this directory into images/ subdirectory.
4 4
5 * refcards/: New directory. Move refcards here. 5 * refcards/: New directory. Move refcards here.
6 * Makefile: Move refcard rules from here...
7 * refcards/Makefile: ...to here.
6 8
7 * tutorials/: New directory. Move TUTORIAL* here. 9 * tutorials/: New directory. Move TUTORIAL* here.
8 10
9 * gnus.pbm, letter.pbm, letter.xpm: 11 * gnus.pbm, letter.pbm, letter.xpm:
10 * splash.pbm, splash.xpm, splash8.xpm: Move from etc/ to etc/images/. 12 * splash.pbm, splash.xpm, splash8.xpm: Move from etc/ to etc/images/.
11
12 * README: Move license information for the above files from here... 13 * README: Move license information for the above files from here...
13 * images/README: ...to here. 14 * images/README: ...to here.
14 15
diff --git a/etc/refcards/Makefile b/etc/refcards/Makefile
new file mode 100644
index 00000000000..d6fba02908a
--- /dev/null
+++ b/etc/refcards/Makefile
@@ -0,0 +1,101 @@
1### Makefile for Emacs refcards
2
3## Copyright (C) 1993, 1994, 2001, 2002, 2003, 2004, 2005, 2006,
4## 2007 Free Software Foundation, Inc.
5
6## This file is part of GNU Emacs.
7
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.
12
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.
17
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.
22
23
24## Top-level targets.
25
26## PS files included with Emacs.
27all: refcards dired-refcards misc-refcards
28
29
30refcards: refcard.ps cs-refcard.ps de-refcard.ps fr-refcard.ps \
31 pl-refcard.ps pt-br-refcard.ps ru-refcard.ps sk-refcard.ps
32
33dired-refcards: dired-ref.ps cs-dired-ref.ps fr-drdref.ps sk-dired-ref.ps
34
35## No PS files: vipcard.tex viperCard.tex survival.tex sk-survival.tex
36misc-refcards: calccard.ps gnus-booklet.ps gnus-refcard.ps orgcard.ps
37
38## Following PS files are not included with Emacs.
39survival-cards: survival.ps cs-survival.ps sk-survival.ps
40
41viper-cards: vipcard.ps viperCard.ps
42
43
44## dvi files.
45
46## FIXME the sk-*.tex files say to use csplain, but were not
47## traditionally in this rule. Fix the doc or the rule.
48cs-refcard.dvi cs-dired-ref.dvi cs-survival.dvi: %.dvi: %.tex
49 csplain $<
50
51pl-refcard.dvi: %.dvi: %.tex
52 if ! kpsewhich -format=fmt mex > /dev/null; then \
53 echo "No mex format found."; false; \
54 fi
55 tex $<
56
57ru-refcard.dvi gnus-refcard.dvi: %.dvi: %.tex
58 latex $<
59
60gnus-booklet.dvi: gnus-refcard.tex
61 latex '\def\booklettrue{}\def\letterpapertrue{}\input{gnus-refcard}'
62 mv gnus-refcard.dvi $@
63
64## Everything not explicitly listed above.
65%.dvi: %.tex
66 tex $<
67
68
69## PostScript files.
70
71## Note that some of the tex files (refcard, de-refcard, fr-refcard,
72## pt-br-refcard) have settings for letter or a4 paper. Following are
73## the default paper sizes (letter for English, A4 for translations).
74## FIXME orgcard.ps does not fit on letter (see orgcard.tex).
75
76## A4, landscape.
77de-refcard.ps fr-refcard.ps pt-br-refcard.ps orgcard.ps: %.ps: %.dvi
78 dvips -t a4 -t landscape $< -o $@
79
80## A4, portrait.
81cs-dired-ref.ps cs-refcard.ps cs-survival.ps fr-drdref.ps \
82pl-refcard.ps ru-refcard.ps \
83sk-dired-ref.ps sk-refcard.ps sk-survival.ps: %.ps: %.dvi
84 dvips -t a4 $< -o $@
85
86## letter, landscape.
87calccard.ps refcard.ps: %.ps: %.dvi
88 dvips -t letter -t landscape $< -o $@
89
90## letter, portrait.
91dired-ref.ps gnus-booklet.ps gnus-refcard.ps survival.ps vipcard.ps \
92viperCard.ps: %.ps: %.dvi
93 dvips -t letter $< -o $@
94
95
96.PHONY: clean
97
98clean:
99 -rm -f *.dvi *.log
100
101### Makefile ends here