Makefile 7.45 KB
Newer Older
Linus Tolke's avatar
Linus Tolke committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# $Id$
# Copyright (C) 1991  Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
# 
# LysKOM 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 1, or (at your option) 
# any later version.
# 
# LysKOM 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 LysKOM; see the file COPYING.  If not, write to
# Lysator, c/o ISY, Linkoping University, S-581 83 Linkoping, SWEDEN,
# or the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, 
# MA 02139, USA.
#
# Please mail bug reports to bug-lyskom@lysator.liu.se. 
#
25
26
# $Id$
# $Log$
Linus Tolke's avatar
Linus Tolke committed
27
28
29
30
# Revision 38.3  1994/01/14 02:40:01  linus
# Fixed local installation path.
#
# Revision 38.2  1994/01/14  00:28:00  linus
Linus Tolke's avatar
Linus Tolke committed
31
32
33
# Fixed some bytecomp warnings.
#
# Revision 38.1  1994/01/10  18:07:53  linus
34
35
36
37
# The installation method changed (again).
# The version is now contained in the Makefile.
#
# Revision 38.0  1994/01/06  01:56:09  linus
Linus Tolke's avatar
Linus Tolke committed
38
39
40
# New version
#
# Revision 36.9  1994/01/06  00:55:12  linus
Linus Tolke's avatar
Linus Tolke committed
41
42
43
# Removed installation of doc.
#
# Revision 36.8  1993/12/14  02:21:29  linus
44
45
46
# Small fixes for emacs 18.55, jump.
#
# Revision 36.7  1993/11/21  04:37:06  linus
Linus Tolke's avatar
Linus Tolke committed
47
48
49
# Better tags entry.
#
# Revision 36.6  1993/09/10  16:36:51  linus
Linus Tolke's avatar
Linus Tolke committed
50
51
52
# Removed distribution script.
#
# Revision 36.5  1993/08/31  11:22:12  linus
53
54
55
# Corrected ftp-site. compress => gzip
#
# Revision 36.4  1993/07/26  19:07:12  linus
Linus Tolke's avatar
Linus Tolke committed
56
57
58
# Buggfixes, bug-report, quit-ding
#
# Revision 36.3  1993/05/27  15:22:43  linus
Linus Tolke's avatar
Linus Tolke committed
59
60
61
# install in local/var/elisp
#
# Revision 36.2  1993/05/27  13:21:12  linus
Linus Tolke's avatar
Linus Tolke committed
62
63
64
# obel18 => diag19
#
# Revision 36.1  1993/04/26  19:35:11  linus
Linus Tolke's avatar
Linus Tolke committed
65
66
67
# New version
#
# Revision 35.22  1993/04/26  19:30:54  linus
Linus Tolke's avatar
Linus Tolke committed
68
69
70
# Rewound to before prefetch.
#
# Revision 35.21  1993/02/04  04:00:48  linus
71
72
73
# Removed the import.make dependencie of the Makefile.
#
# Revision 35.20  1992/07/30  19:49:22  linus
74
75
76
# Moved around functions to the new reading.el file.
#
# Revision 35.19  1992/07/26  23:14:02  linus
Linus Tolke's avatar
Linus Tolke committed
77
78
79
# Added prefetch.el
#
# Revision 35.18  1992/06/16  11:33:32  linus
80
81
82
# Alfa-version is replaced upon installation also.
#
# Revision 35.17  1992/05/11  01:55:38  linus
83
84
85
# support for distribution to nanny removed
#
# Revision 35.16  1992/03/28  19:54:10  linus
Linus Tolke's avatar
Linus Tolke committed
86
87
88
# Removed mv to old-versions
#
# Revision 35.15  1992/03/22  21:10:12  linus
Linus Tolke's avatar
Linus Tolke committed
89
90
91
# Moved info-dir.
#
# Revision 35.14  1992/02/10  02:53:33  linus
Linus Tolke's avatar
Linus Tolke committed
92
93
94
# mkdir replaced by $(MKDIR).
#
# Revision 35.13  1991/12/19  12:03:51  linus
Linus Tolke's avatar
Linus Tolke committed
95
96
97
# .elc-files require macros.elc.
#
# Revision 35.12  1991/12/18  04:13:37  linus
Linus Tolke's avatar
$(MAKE)    
Linus Tolke committed
98
99
100
# $(MAKE)
#
# Revision 35.11  1991/10/08  17:11:18  linus
101
102
103
# Splitting the makefile install entries to make it easier to install without doc.
#
# Revision 35.10  1991/10/05  18:15:27  linus
104
105
106
# Now handles the english version of the client also.
#
# Revision 35.9  1991/09/26  14:02:16  linus
107
108
109
110
# Install in the correct directory on the ftp-area.
#
# Revision 35.8  1991/09/16  20:33:44  linus
# r{tt namn p} todo filen i wc.
Linus Tolke's avatar
Linus Tolke committed
111
112
#
# Revision 35.7  1991/09/16  19:59:28  linus
113
114
115
# Makefile now works with clientversion-long.
#
# Revision 35.6  1991/09/16  19:31:37  linus
116
117
118
# Makefile now works with new doc-file names.
#
# Revision 35.5  1991/09/16  18:02:02  linus
Linus Tolke's avatar
Linus Tolke committed
119
120
121
122
123
124
125
# * M ci     Makefile
# * A ci     makealfa.l
# =====================================================
# makealfa.l created to make the alfa version of lyskom.elc
#
# Revision 35.4  1991/09/16  16:40:27  linus
# alfa talar om att det {r alfa i versionsnumret.
126
127
#
# Revision 35.3  1991/09/15  10:07:04  linus
Linus Tolke's avatar
Linus Tolke committed
128
129
130
# Added copyright note
#
# Revision 35.2  1991/09/13  21:42:53  linus
Linus Tolke's avatar
Linus Tolke committed
131
132
133
# Lagt till distclean.
#
# Revision 35.1  1991/08/21  15:44:47  linus
134
135
# Lagt till lyskom-clientversion-long
#
Per Cederqvist's avatar
.    
Per Cederqvist committed
136

137
138
CLIENTVERSION = 0.38.1

139
140
GENERIC-CLEAN = *~ *.o core
GENERIC-DIST-CLEAN = TAGS
Linus Tolke's avatar
Linus Tolke committed
141

Per Cederqvist's avatar
.    
Per Cederqvist committed
142
RM = /usr/gnu/bin/rm -vf
143

Linus Tolke's avatar
Linus Tolke committed
144
# for compiling using emacs 19!
145
EMACS-BATCH = emacs -batch
Per Cederqvist's avatar
.    
Per Cederqvist committed
146
147

# NOTE: lyskom-rest.el must be the last file in PARTS-EL and SRC-ELC.
148
PARTS-EL = komtypes.el clienttypes.el startup.el \
Linus Tolke's avatar
Linus Tolke committed
149
	reading.el \
Per Cederqvist's avatar
.    
Per Cederqvist committed
150
151
152
153
154
	internal.el parse.el services.el cache.el\
	commands1.el commands2.el review.el edit-text.el \
	view-text.el async.el completing-read.el \
	prioritize.el flags.el \
	elib-string.el \
155
	lyskom-rest.el
156
157
158
159
160
161
162
HEADER-EL = macros.el vars.el
HEADER-ELC = macros.elc vars.elc
SWEDISH-EL = swedish-strings.el
SWEDISH-ELC = swedish-strings.elc
ENGLISH-EL = english-strings.el
ENGLISH-ELC = english-strings.elc
SRC-ELC = komtypes.elc clienttypes.elc startup.elc \
Linus Tolke's avatar
Linus Tolke committed
163
	reading.elc \
Per Cederqvist's avatar
.    
Per Cederqvist committed
164
165
166
167
168
	internal.elc parse.elc services.elc cache.elc\
	commands1.elc commands2.elc review.elc edit-text.elc \
	view-text.elc async.elc completing-read.elc \
	prioritize.elc flags.elc \
	elib-string.elc \
169
	lyskom-rest.elc 
Per Cederqvist's avatar
.    
Per Cederqvist committed
170
171
172
173
PARTS-ELC = $(SRC-ELC)

.SUFFIXES : .el .elc
.el.elc:
174
	$(EMACS-BATCH) -l `pwd`/macros -l `pwd`/vars -f batch-byte-compile $*.el
Per Cederqvist's avatar
.    
Per Cederqvist committed
175
176
177

all: lyskom.elc

178
179
180
# influenced by autoconf? Yes.
vars.el: vars.el.in Makefile
	sed 's/@@CLIENTVERSION@@/$(CLIENTVERSION)/' < vars.el.in > vars.el
181
182
183

lyskom.elc: $(HEADER-ELC) $(SWEDISH-ELC) $(PARTS-ELC)
	cat $(HEADER-ELC) $(SWEDISH-ELC) $(PARTS-ELC) > lyskom.elc
Linus Tolke's avatar
Linus Tolke committed
184

185
186
english-lyskom.elc: $(HEADER-ELC) $(ENGLISH-ELC) $(PARTS-ELC)
	cat $(HEADER-ELC) $(ENGLISH-ELC) $(PARTS-ELC) > english-lyskom.elc
Per Cederqvist's avatar
.    
Per Cederqvist committed
187

188
189
lyskom.el: $(HEADER-EL) $(SWEDISH-EL) $(PARTS-EL)
	cat $(HEADER-EL) $(SWEDISH-EL) $(PARTS-EL) > lyskom.el
Per Cederqvist's avatar
.    
Per Cederqvist committed
190

Linus Tolke's avatar
Linus Tolke committed
191
$(SRC-ELC) $(SWEDISH-ELC) $(ENGLISH-ELC): macros.elc
Per Cederqvist's avatar
.    
Per Cederqvist committed
192
193
194
195
196
197
198
199
200
201
202
203
204
205

elc-files: $(HEADER-ELC) $(PARTS-ELC) 


#Detta kr{ver gnu-make. Tyv{rr funkade inte $(SRC-ELC)-prylen l{ngre ner alls.
#Kanske denna $(SRC-ELC) pryl fungerar.
#$(SRC-ELC) :%.elc: %.el macros.elc
#	$(EMACS-BATCH) -l ./macros.elc -f batch-byte-compile $<

#$(SRC-ELC):
#	$(EMACS-BATCH) -l ./macros.el -f batch-byte-compile $*.el


wc:
206
	@wc $(HEADER-EL) $(PARTS-EL) $(SWEDISH-EL) $(ENGLISH-EL)
Linus Tolke's avatar
Linus Tolke committed
207
	@wc ../doc/elisp-client.latexinfo ChangeLog ../misc/todo
Per Cederqvist's avatar
.    
Per Cederqvist committed
208

Linus Tolke's avatar
Linus Tolke committed
209
TAGS: $(HEADER-EL) $(PARTS-EL) $(SWEDISH-EL) $(ENGLISH-EL)
210
	etags $(HEADER-EL) $(PARTS-EL) $(SWEDISH-EL) $(ENGLISH-EL)
Per Cederqvist's avatar
.    
Per Cederqvist committed
211
212

doc:
Linus Tolke's avatar
$(MAKE)    
Linus Tolke committed
213
	(cd ../doc ; $(MAKE) elisp-client elisp-client.txt ; )
Per Cederqvist's avatar
.    
Per Cederqvist committed
214

215
install: installnodoc installdoc
Per Cederqvist's avatar
.    
Per Cederqvist committed
216

217
218
installatlysator: lyskom-$(CLIENTVERSION).elc lyskom.el
	# Lysator
Linus Tolke's avatar
Linus Tolke committed
219
	cp lyskom.el /usr/gnu/lib/emacs/site-lisp/lyskom.el
Linus Tolke's avatar
Linus Tolke committed
220
	cp lyskom.el /usr/local/var/elisp/lyskom.el
Linus Tolke's avatar
Linus Tolke committed
221
	cp lyskom-$(CLIENTVERSION).elc /usr/gnu/lib/emacs/site-lisp/lyskom.elc
222
223
224
225

lyskom-$(CLIENTVERSION).elc: lyskom.el
	$(EMACS-BATCH) -f batch-byte-compile lyskom.el
	mv lyskom.elc lyskom-$(CLIENTVERSION).elc
Linus Tolke's avatar
Linus Tolke committed
226

227
228
229
230
231
232
233
234
235
236
lyskom.elc-compatibility: lyskom.el
	$(EMACS-BATCH) -l ./compatibility.el -f batch-byte-compile lyskom.el
	mv lyskom.elc lyskom.elc-compatibility

lyskom-$(CLIENTVERSION).el.gz: lyskom.el
	gzip -9 < lyskom.el > lyskom-$(CLIENTVERSION).el.gz

lyskom-$(CLIENTVERSION).elc.gz: lyskom-$(CLIENTVERSION).elc
	gzip -9 < lyskom-$(CLIENTVERSION).elc > lyskom-$(CLIENTVERSION).elc.gz

Linus Tolke's avatar
Linus Tolke committed
237
238
installatftp: lyskom-$(CLIENTVERSION).el.gz
	mv lyskom-$(CLIENTVERSION).el.gz /usr/ftp/pub/lyskom/elisp-client
239
240
241

.PHONY: installnodoc
installnodoc: installatlysator installatftp
242

Linus Tolke's avatar
Linus Tolke committed
243
# This is now the responsability of the Makefile in the doc-dir.
244
installdoc: doc
Linus Tolke's avatar
Linus Tolke committed
245
	( cd ../doc; make install )
Per Cederqvist's avatar
.    
Per Cederqvist committed
246

247
248
249
250
251
252
smallclean:
	$(RM) lyskom-$(CLIENTVERSION).el.gz lyskom-$(CLIENTVERSION).elc.gz
	$(RM) lyskom-$(CLIENTVERSION).elc lyskom.el

clean: smallclean
	$(RM) *~ *.elc $(GENERIC-CLEAN)
Per Cederqvist's avatar
.    
Per Cederqvist committed
253

Linus Tolke's avatar
Linus Tolke committed
254
distclean: clean
255
	$(RM) $(GENERIC-DIST-CLEAN) Topdir.make */Topdir.make vars.el