0
|
1 #
|
|
2 # Makefile for compiling and installing Viper
|
|
3 #
|
|
4
|
|
5 # -------- USER MAY NEED TO CHANGE THESE ---------------------
|
|
6 # To compile under XEmacs, uncomment XEmacs-specific versions of the
|
|
7 # variables VERSION, EMACS, DATADIR and comment out the Emacs-specific
|
|
8 # versions.
|
|
9
|
70
|
10 VERSION = 19.31
|
0
|
11 EMACS = emacs-$(VERSION)
|
|
12 #VERSION = 19.14
|
|
13 #EMACS = xemacs-$(VERSION)
|
|
14 PREFIX = /usr/local
|
|
15 DATADIR = $(PREFIX)/share
|
|
16 #DATADIR = $(PREFIX)/lib
|
|
17 LISPDIR = $(DATADIR)/emacs/site-lisp
|
|
18 INFODIR = $(PREFIX)/info
|
|
19 ETCDIR = $(DATADIR)/emacs/$(VERSION)/etc
|
|
20
|
|
21 # --------- YOU PROBABLY DON'T WANT TO CHANGE THESE ----------------
|
|
22 TeX = tex
|
|
23 TEXINDEX = texindex
|
|
24 MAKEINFO = makeinfo
|
|
25 INSTALL = install
|
|
26
|
|
27 # --------- ONLY AUTHORIZED PERSONNEL BEYOND THIS POINT!!! ------------
|
|
28 VIPER = viper.el viper-util.el viper-mous.el viper-ex.el \
|
70
|
29 viper-macs.el viper-keym.el
|
0
|
30 VIPERelc = viper-util.elc viper-mous.elc viper-ex.elc viper-macs.elc \
|
70
|
31 viper-keym.elc viper.elc
|
|
32
|
|
33 PRELOADS = -l viper-util.el -l viper-ex.el -l viper-mous.el \
|
|
34 -l viper-macs.el -l viper-keym.el -l viper.el
|
0
|
35
|
|
36 all: dvi info hello elc goodbye
|
|
37
|
|
38 elc: $(VIPERelc)
|
|
39
|
|
40 goodbye:
|
|
41 @echo ""
|
|
42 @echo ""
|
|
43 @echo ""
|
|
44 @echo " The above compiler warnings were normal -- don't panic!"
|
|
45 @echo ""
|
|
46 @echo " Please report bugs via the command :submitReport"
|
|
47 @echo ""
|
|
48 @echo ""
|
|
49 @echo ""
|
|
50
|
|
51 hello:
|
|
52 @echo ""
|
|
53 @echo ""
|
|
54 @echo "Byte compiling using Emacs 19"
|
|
55 @echo "Use make EMACS=xemacs to compile under XEmacs"
|
|
56 @echo ""
|
|
57 @echo ""
|
|
58 @echo " The following compiler warnings are normal -- don't panic!"
|
|
59 @echo ""
|
|
60 @echo ""
|
|
61 @echo ""
|
|
62
|
|
63 viper.dvi: viper.texi viper-cmd.texi
|
|
64 @echo ""
|
|
65 @echo ""
|
|
66 @echo "Making viper.dvi --- a Printable Version of the Viper Manual";
|
|
67 @echo ""
|
|
68 $(TeX) viper.texi
|
|
69 @echo ""
|
|
70 @echo "Indexing "
|
|
71 $(TEXINDEX) viper.cp
|
|
72 $(TEXINDEX) viper.fn
|
|
73 $(TEXINDEX) viper.ky
|
|
74 $(TEXINDEX) viper.pg
|
|
75 # $(TEXINDEX) viper.tp
|
|
76 $(TEXINDEX) viper.vr
|
|
77 @echo ""
|
|
78 @echo "Texing Again";
|
|
79 $(TeX) viper.texi
|
|
80
|
|
81 viper.info: viper.texi viper-cmd.texi
|
|
82 @echo ""
|
|
83 @echo ""
|
|
84 @echo "Making Info Files for the Viper Manual"
|
|
85 @echo ""
|
|
86 $(MAKEINFO) viper.texi
|
|
87
|
|
88 viperCard.dvi: viperCard.tex
|
|
89 @echo ""
|
|
90 @echo ""
|
|
91 @echo "Making the Viper Reference Card"
|
|
92 @echo ""
|
|
93 $(TeX) viperCard.tex
|
|
94
|
70
|
95 viper-util.elc: viper-util.el
|
0
|
96 @echo ""
|
|
97 $(EMACS) -batch -f batch-byte-compile viper-util.el
|
|
98
|
70
|
99 viper-ex.elc: viper-ex.el viper-util.el
|
0
|
100 @echo ""
|
70
|
101 $(EMACS) -batch $(PRELOADS) -f batch-byte-compile viper-ex.el
|
0
|
102
|
70
|
103 viper-mous.elc: viper-mous.el viper-util.el
|
0
|
104 @echo ""
|
70
|
105 $(EMACS) -batch $(PRELOADS) -f batch-byte-compile viper-mous.el
|
0
|
106
|
70
|
107 viper-macs.elc: viper-macs.el viper-util.el
|
0
|
108 @echo ""
|
70
|
109 $(EMACS) -batch $(PRELOADS) -f batch-byte-compile viper-macs.el
|
0
|
110
|
70
|
111 viper-keym.elc: viper-keym.el viper-util.el
|
0
|
112 @echo ""
|
70
|
113 $(EMACS) -batch $(PRELOADS) -f batch-byte-compile viper-keym.el
|
0
|
114
|
70
|
115 viper.elc: viper.el viper-util.el
|
0
|
116 @echo ""
|
70
|
117 $(EMACS) -batch $(PRELOADS) -f batch-byte-compile viper.el
|
0
|
118
|
|
119
|
|
120 dvi: viper.dvi viperCard.dvi
|
|
121
|
|
122 info: viper.info
|
|
123
|
|
124 install: all
|
|
125 $(INSTALL) -m444 $(VIPER) $(LISPDIR)
|
|
126 $(INSTALL) -m644 viper*.elc $(LISPDIR)
|
70
|
127 $(INSTALL) -m444 viper.info* $(INFODIR)
|
0
|
128 $(INSTALL) -m644 viper.dvi viperCard.dvi $(ETCDIR)
|
|
129 @echo ""
|
|
130 @echo "Please move viper.texi and viper-cmd.texi to"
|
|
131 @echo " emacs-distribution-directory/man/"
|
|
132 @echo ""
|
|
133
|
|
134 clean:
|
|
135 rm -f *.elc *~ core
|
|
136
|
|
137 distclean: clean
|
70
|
138
|
0
|
139 realclean: clean
|
|
140 rm -f *.dvi viper.info*
|
|
141 rm -f viper.aux viper.cp viper.cps viper.fn viper.fns viper.ky \
|
|
142 viper.kys viper.log viper.pg viper.pgs viper.toc viper.tp \
|
|
143 viper.tps viper.vr viper.vrs
|