0
|
1 #
|
|
2 # Makefile for compiling and installing EDIFF
|
|
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
|
181
|
10 VERSION = 20.0
|
0
|
11 EMACS = emacs-$(VERSION)
|
181
|
12 #VERSION = 20.3
|
0
|
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
|
181
|
20 COMPDIR =
|
0
|
21
|
|
22 # --------- YOU PROBABLY DON'T WANT TO CHANGE THESE ----------------
|
|
23 TeX = tex
|
|
24 TEXINDEX = texindex
|
|
25 MAKEINFO = makeinfo
|
|
26 INSTALL = install
|
|
27
|
|
28 # --------- ONLY AUTHORIZED PERSONNEL BEYOND THIS POINT!!! ------------
|
78
|
29 EDIFF = ediff-init.el ediff-help.el ediff-diff.el ediff-merg.el \
|
|
30 ediff-wind.el ediff-util.el ediff-mult.el ediff-vers.el \
|
82
|
31 ediff-ptch.el ediff.el ediff-hook.el ediff-tbar.el
|
181
|
32 EDIFFelc = $(COMPDIR)ediff-init.elc \
|
|
33 $(COMPDIR)ediff-help.elc \
|
|
34 $(COMPDIR)ediff-diff.elc \
|
|
35 $(COMPDIR)ediff-merg.elc \
|
|
36 $(COMPDIR)ediff-wind.elc \
|
|
37 $(COMPDIR)ediff-util.elc \
|
|
38 $(COMPDIR)ediff-mult.elc \
|
|
39 $(COMPDIR)ediff-vers.elc \
|
|
40 $(COMPDIR)ediff-ptch.elc \
|
|
41 $(COMPDIR)ediff.elc \
|
|
42 $(COMPDIR)ediff-hook.elc \
|
|
43 $(COMPDIR)ediff-tbar.elc
|
|
44
|
|
45 COMPILE_ARGS = -batch -f batch-byte-compile
|
0
|
46
|
|
47
|
|
48 all: hello elc goodbye dvi info
|
|
49
|
|
50 elc: $(EDIFFelc)
|
|
51
|
|
52 goodbye:
|
|
53 @echo ""
|
|
54 @echo ""
|
|
55 @echo ""
|
|
56 @echo " The above compiler warnings were normal -- don't panic!"
|
|
57 @echo ""
|
|
58 @echo " Please report bugs via M-x ediff-submit-report"
|
|
59 @echo ""
|
|
60 @echo ""
|
|
61 @echo ""
|
|
62
|
|
63 hello:
|
|
64 @echo ""
|
|
65 @echo ""
|
181
|
66 @echo "Byte compiling using Emacs"
|
0
|
67 @echo "Use make EMACS=xemacs to compile under XEmacs"
|
|
68 @echo ""
|
|
69 @echo ""
|
|
70 @echo " The following compiler warnings are normal -- don't panic!"
|
|
71 @echo ""
|
|
72 @echo ""
|
|
73 @echo ""
|
|
74
|
181
|
75 $(COMPDIR)ediff-init.elc: ediff-init.el
|
0
|
76 @echo ""
|
181
|
77 $(EMACS) $(COMPILE_ARGS) ediff-init.el
|
0
|
78
|
181
|
79 $(COMPDIR)ediff-help.elc: ediff-help.el
|
78
|
80 @echo ""
|
181
|
81 $(EMACS) $(COMPILE_ARGS) ediff-help.el
|
78
|
82
|
181
|
83 $(COMPDIR)ediff-hook.elc: ediff-hook.el
|
0
|
84 @echo ""
|
181
|
85 $(EMACS) $(COMPILE_ARGS) ediff-hook.el
|
0
|
86
|
181
|
87 $(COMPDIR)ediff-tbar.elc: ediff-tbar.el
|
78
|
88 @echo ""
|
181
|
89 $(EMACS) $(COMPILE_ARGS) ediff-tbar.el
|
78
|
90
|
181
|
91 $(COMPDIR)ediff-diff.elc: ediff-init.el ediff-diff.el
|
0
|
92 @echo ""
|
181
|
93 $(EMACS) $(COMPILE_ARGS) ediff-diff.el
|
0
|
94
|
181
|
95 $(COMPDIR)ediff-merg.elc: ediff-init.el ediff-merg.el
|
0
|
96 @echo ""
|
181
|
97 $(EMACS) $(COMPILE_ARGS) ediff-merg.el
|
0
|
98
|
181
|
99 $(COMPDIR)ediff-mult.elc: ediff-init.el ediff-mult.el
|
0
|
100 @echo ""
|
181
|
101 $(EMACS) $(COMPILE_ARGS) ediff-mult.el
|
0
|
102
|
181
|
103 $(COMPDIR)ediff-vers.elc: ediff-init.el ediff-vers.el
|
0
|
104 @echo ""
|
181
|
105 $(EMACS) $(COMPILE_ARGS) ediff-vers.el
|
0
|
106
|
181
|
107 $(COMPDIR)ediff-ptch.elc: ediff-init.el ediff-ptch.el
|
0
|
108 @echo ""
|
181
|
109 $(EMACS) $(COMPILE_ARGS) ediff-ptch.el
|
0
|
110
|
181
|
111 $(COMPDIR)ediff.elc: ediff-init.el ediff.el
|
0
|
112 @echo ""
|
181
|
113 $(EMACS) $(COMPILE_ARGS) ediff.el
|
0
|
114
|
181
|
115 $(COMPDIR)ediff-util.elc: ediff-init.el ediff-util.el
|
0
|
116 @echo ""
|
181
|
117 $(EMACS) $(COMPILE_ARGS) ediff-util.el
|
0
|
118
|
181
|
119 $(COMPDIR)ediff-wind.elc: ediff-init.el ediff-wind.el
|
0
|
120 @echo ""
|
181
|
121 $(EMACS) $(COMPILE_ARGS) ediff-wind.el
|
0
|
122
|
|
123 ediff.dvi: ediff.texi
|
|
124 @echo ""
|
|
125 @echo ""
|
|
126 @echo "Making ediff.dvi --- a Printable Version of the Ediff Manual";
|
|
127 @echo ""
|
|
128 $(TeX) ediff.texi
|
|
129 @echo ""
|
|
130 @echo "Indexing "
|
|
131 $(TEXINDEX) ediff.cp
|
|
132 $(TEXINDEX) ediff.fn
|
|
133 $(TEXINDEX) ediff.pg
|
|
134 $(TEXINDEX) ediff.vr
|
|
135 @echo ""
|
|
136 @echo "Texing Again";
|
|
137 $(TeX) ediff.texi
|
|
138 @echo ""
|
|
139
|
181
|
140 ediff: ediff.texi
|
0
|
141 @echo ""
|
|
142 @echo ""
|
|
143 @echo "Making Info Files for the Ediff Manual"
|
|
144 @echo ""
|
|
145 $(MAKEINFO) ediff.texi
|
|
146 @echo "Info done"
|
|
147
|
|
148 dvi: ediff.dvi
|
|
149
|
181
|
150 info: ediff
|
0
|
151
|
|
152 install: all
|
|
153 $(INSTALL) -m444 $(EDIFF) $(LISPDIR)
|
|
154 $(INSTALL) -m644 ediff*.elc $(LISPDIR)
|
|
155 $(INSTALL) -m644 ediff.dvi $(ETCDIR)
|
78
|
156 $(INSTALL) -m444 ediff ediff-? $(INFODIR)
|
0
|
157 @echo ""
|
|
158 @echo "Please move ediff.texi to emacs-distribution-directory/man/"
|
|
159 @echo ""
|
|
160
|
|
161 clean:
|
|
162 rm -f ediff*.elc *~ core
|
|
163
|
|
164 distclean: clean
|
14
|
165
|
0
|
166 realclean: clean
|
181
|
167 rm -f *.dvi ../info/ediff ../info/ediff-?
|
0
|
168 rm -f ediff.aux ediff.cp ediff.cps ediff.fn ediff.fns ediff.ky \
|
|
169 ediff.kys ediff.log ediff.pg ediff.pgs ediff.toc ediff.tp \
|
|
170 ediff.tps ediff.vr ediff.vrs
|