summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2007-08-22 08:17:11 +0000
committerGlenn Morris <rgm@gnu.org>2007-08-22 08:17:11 +0000
commit869653856cf0fb959b66fe650c27acb910bd046b (patch)
treea6f134d894719289885fbf0dd9973b0834cc1595 /etc
parent6090e05ee7f1fbd6af1dbf0978b59d8a32e1dc05 (diff)
downloademacs-869653856cf0fb959b66fe650c27acb910bd046b.tar.gz
New file, with existing refcard rules from etc/Makefile.
Diffstat (limited to 'etc')
-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 @@
* tree-widget: Move this directory into images/ subdirectory.
* refcards/: New directory. Move refcards here.
+ * Makefile: Move refcard rules from here...
+ * refcards/Makefile: ...to here.
* tutorials/: New directory. Move TUTORIAL* here.
* gnus.pbm, letter.pbm, letter.xpm:
* splash.pbm, splash.xpm, splash8.xpm: Move from etc/ to etc/images/.
-
* README: Move license information for the above files from here...
* images/README: ...to here.
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 @@
+### Makefile for Emacs refcards
+
+## Copyright (C) 1993, 1994, 2001, 2002, 2003, 2004, 2005, 2006,
+## 2007 Free Software Foundation, Inc.
+
+## This file is part of GNU Emacs.
+
+## GNU Emacs is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 3, or (at your option)
+## any later version.
+
+## 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
+## along with GNU Emacs; see the file COPYING. If not, write to the
+## Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+## Boston, MA 02110-1301, USA.
+
+
+## Top-level targets.
+
+## PS files included with Emacs.
+all: refcards dired-refcards misc-refcards
+
+
+refcards: refcard.ps cs-refcard.ps de-refcard.ps fr-refcard.ps \
+ pl-refcard.ps pt-br-refcard.ps ru-refcard.ps sk-refcard.ps
+
+dired-refcards: dired-ref.ps cs-dired-ref.ps fr-drdref.ps sk-dired-ref.ps
+
+## No PS files: vipcard.tex viperCard.tex survival.tex sk-survival.tex
+misc-refcards: calccard.ps gnus-booklet.ps gnus-refcard.ps orgcard.ps
+
+## Following PS files are not included with Emacs.
+survival-cards: survival.ps cs-survival.ps sk-survival.ps
+
+viper-cards: vipcard.ps viperCard.ps
+
+
+## dvi files.
+
+## FIXME the sk-*.tex files say to use csplain, but were not
+## traditionally in this rule. Fix the doc or the rule.
+cs-refcard.dvi cs-dired-ref.dvi cs-survival.dvi: %.dvi: %.tex
+ csplain $<
+
+pl-refcard.dvi: %.dvi: %.tex
+ if ! kpsewhich -format=fmt mex > /dev/null; then \
+ echo "No mex format found."; false; \
+ fi
+ tex $<
+
+ru-refcard.dvi gnus-refcard.dvi: %.dvi: %.tex
+ latex $<
+
+gnus-booklet.dvi: gnus-refcard.tex
+ latex '\def\booklettrue{}\def\letterpapertrue{}\input{gnus-refcard}'
+ mv gnus-refcard.dvi $@
+
+## Everything not explicitly listed above.
+%.dvi: %.tex
+ tex $<
+
+
+## PostScript files.
+
+## Note that some of the tex files (refcard, de-refcard, fr-refcard,
+## pt-br-refcard) have settings for letter or a4 paper. Following are
+## the default paper sizes (letter for English, A4 for translations).
+## FIXME orgcard.ps does not fit on letter (see orgcard.tex).
+
+## A4, landscape.
+de-refcard.ps fr-refcard.ps pt-br-refcard.ps orgcard.ps: %.ps: %.dvi
+ dvips -t a4 -t landscape $< -o $@
+
+## A4, portrait.
+cs-dired-ref.ps cs-refcard.ps cs-survival.ps fr-drdref.ps \
+pl-refcard.ps ru-refcard.ps \
+sk-dired-ref.ps sk-refcard.ps sk-survival.ps: %.ps: %.dvi
+ dvips -t a4 $< -o $@
+
+## letter, landscape.
+calccard.ps refcard.ps: %.ps: %.dvi
+ dvips -t letter -t landscape $< -o $@
+
+## letter, portrait.
+dired-ref.ps gnus-booklet.ps gnus-refcard.ps survival.ps vipcard.ps \
+viperCard.ps: %.ps: %.dvi
+ dvips -t letter $< -o $@
+
+
+.PHONY: clean
+
+clean:
+ -rm -f *.dvi *.log
+
+### Makefile ends here