aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-03-23 03:48:03 +0000
committerGlenn Morris2007-03-23 03:48:03 +0000
commit18d534c9df9af2d847c0ad9037a25b5ff562e66a (patch)
treeb9c951899159833fd5094cd524bd0c3c94f9af79
parent7ba3f463dfca7d8be81b893242ce35c9ab4d3cb6 (diff)
downloademacs-18d534c9df9af2d847c0ad9037a25b5ff562e66a.tar.gz
emacs-18d534c9df9af2d847c0ad9037a25b5ff562e66a.zip
(DESTDIR, LIBDIR, BINDIR, MANDIR, MANEXT): Delete
unused variables. (dired-refcards, misc-refcards, survival-card, viper-cards): New targets. (all): Also build dired-refcards and misc-refcards. (clean, distclean, maintainer-clean): Depend on mostlyclean. (SOURCES): Remove non-existent files. (mostlyclean, clean, distclean, maintainer-clean, unlock, relock): Mark as phony. (.ps files): Specify default papersize in the dvips command.
-rw-r--r--etc/Makefile115
1 files changed, 92 insertions, 23 deletions
diff --git a/etc/Makefile b/etc/Makefile
index a238bea1928..0226c2838d9 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -1,43 +1,110 @@
1DESTDIR= 1### Makefile for Emacs etc/ directory
2LIBDIR=/usr/local/lib
3BINDIR=/usr/local/bin
4MANDIR=/usr/man/man1
5MANEXT=1
6 2
7all: 3## Copyright (C) 1993, 1994, 2001, 2002, 2003, 2004, 2005, 2006,
4## 2007 Free Software Foundation, Inc.
8 5
9refcards: refcard.ps cs-refcard.ps de-refcard.ps fr-refcard.ps \ 6## This file is part of GNU Emacs.
10 pl-refcard.ps pt-br-refcard.ps ru-refcard.ps sk-refcard.ps 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 2, 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
11 42
12refcard.dvi de-refcard.dvi fr-refcard.dvi pt-br-refcard.dvi sk-refcard.dvi: %.dvi: %.tex
13 tex $<
14 43
15cs-refcard.dvi: %.dvi: %.tex 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
16 csplain $< 49 csplain $<
17 50
18pl-refcard.dvi: %.dvi: %.tex 51pl-refcard.dvi: %.dvi: %.tex
19 if ! kpsewhich -format=fmt mex > /dev/null; then \ 52 if ! kpsewhich -format=fmt mex > /dev/null; then \
20 echo "No mex format found."; false; \ 53 echo "No mex format found."; false; \
21 fi 54 fi
22 tex $< 55 tex $<
23 56
24ru-refcard.dvi: %.dvi: %.tex 57ru-refcard.dvi gnus-refcard.dvi: %.dvi: %.tex
25 latex $< 58 latex $<
26 59
27refcard.ps de-refcard.ps fr-refcard.ps pt-br-refcard.ps: %.ps: %.dvi 60gnus-booklet.dvi: gnus-refcard.tex
28 dvips -t landscape $< 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 $<
29 79
30cs-refcard.ps pl-refcard.ps ru-refcard.ps sk-refcard.ps: %.ps: %.dvi 80## A4, portrait.
31 dvips $< 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 $<
85
86## letter, landscape.
87calccard.ps refcard.ps: %.ps: %.dvi
88 dvips -t letter -t landscape $<
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 $<
94
95
96.PHONY: mostlyclean clean distclean maintainer-clean unlock relock
32 97
33mostlyclean: 98mostlyclean:
34 -rm -f core *.dvi *.log 99 -rm -f *.dvi *.log
100
101## Note does not delete generated ps files.
102clean distclean maintainer-clean: mostlyclean
103 -rm -f DOC*
35 104
36clean distclean maintainer-clean:
37 -rm -f DOC* core *.dvi *.log
38 105
39SOURCES = [0-9A-QS-Z]* README *.[ch16] emacs.* etags.* ledit.l ms-* \ 106SOURCES = [0-9A-QS-Z]* README *.[ch16] emacs.* ms-* \
40 spook-lines tasks.texi termcap.* *.tex 107 spook-lines termcap.* *.tex
41 108
42unlock: 109unlock:
43 chmod u+w $(SOURCES) 110 chmod u+w $(SOURCES)
@@ -54,4 +121,6 @@ TIC=tic
54e/eterm-color: e/eterm-color.ti 121e/eterm-color: e/eterm-color.ti
55 TERMINFO=`pwd`; export TERMINFO; $(TIC) e/eterm-color.ti 122 TERMINFO=`pwd`; export TERMINFO; $(TIC) e/eterm-color.ti
56 123
57# arch-tag: 4261f003-cf77-4478-a10a-5284e9d8f797 124
125## arch-tag: 4261f003-cf77-4478-a10a-5284e9d8f797
126### Makefile ends here