Makefile 4.75 KB
Newer Older
Linus Tolke Y's avatar
Linus Tolke Y committed
1
2
#
# $Id$
David Kågedal's avatar
David Kågedal committed
3
# Copyright (C) 1991, 1996  Lysator Academic Computer Association.
Linus Tolke Y's avatar
Linus Tolke Y committed
4
5
6
7
8
#
# 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 
David Kågedal's avatar
David Kågedal committed
9
# the Free Software Foundation; either version 2, or (at your option) 
Linus Tolke Y's avatar
Linus Tolke Y committed
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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.
#
23
24
25
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
# $Log$
26
27
28
29
# Revision 44.5  1997/10/11 18:19:43  byers
# OK, det blev ytterligare några ändringar.
# Snart dags för 0.45.1
#
30
# Revision 44.4  1997/09/27 11:43:02  byers
31
32
# Nstan alla variabler r dokumenterade.
# Uppdaterade NEWS-filen fr 0.45.1
33
#
David Byers's avatar
David Byers committed
34
# Revision 44.3  1997/09/16 15:07:36  byers
35
# Smfixar
David Byers's avatar
David Byers committed
36
#
37
# Revision 44.2  1997/08/11 19:54:02  davidk
David Byers's avatar
David Byers committed
38
39
# ndrade versionsnumret till 0.45
# Ladda ../src/widget.el manuellt nr man bygger lyskom-variables.data
40
#
David Byers's avatar
David Byers committed
41
42
43
# Revision 44.1  1996/09/03 16:05:34  byers
# Remainders for 0.44.1
#
44
# Revision 44.0  1996/08/30 14:41:32  davidk
David Byers's avatar
David Byers committed
45
# ndrade revisionsnumret till 44.0
46
#
David Kågedal's avatar
David Kågedal committed
47
48
49
# Revision 43.5  1996/08/30 12:32:08  davidk
# *** empty log message ***
#
David Kågedal's avatar
David Kågedal committed
50
# Revision 43.4  1996/08/15 19:30:47  davidk
David Kågedal's avatar
David Kågedal committed
51
# Version 0.43.2 slppt.
David Kågedal's avatar
David Kågedal committed
52
#
53
# Revision 43.3  1996/08/14 13:49:16  byers
David Kågedal's avatar
David Kågedal committed
54
# Nya filer fr dokumentationsdatabasen, lite upptadering i dokumentationen
55
#
56
57
58
# Revision 43.2  1996/08/14 04:15:14  davidk
# Bytte versionsnummer till 0.43.
#
59
# Revision 43.1  1996/08/07 20:00:46  davidk
60
# Ny ansvarsfrdelning mellan Makefilerna.
61
#
David Kågedal's avatar
David Kågedal committed
62
63
64
# Revision 43.0  1996/08/07 16:36:24  davidk
# Nytt revisionsnummer.
#
David Kågedal's avatar
David Kågedal committed
65
66
67
68
# Revision 41.1  1996/08/07 16:22:53  davidk
# Uppdaterade copyright.
# Separerade install och release.
#
David Kågedal's avatar
David Kågedal committed
69
70
71
# Revision 41.0  1996/05/02 19:20:35  davidk
# Nytt revisionsnummer: 41.0
#
72
73
74
75
# Revision 40.0  1996/03/26 08:28:01  byers
# New version number for release of 0.40
# Added NEWS file for 0.40
#
76
# Revision 39.0  1996/03/14 18:14:56  davidk
77
# kade revisionsnumret till 39.0.
78
#
Linus Tolke Y's avatar
Linus Tolke Y committed
79
80
81
82
# Revision 38.0  1994/01/06 01:47:03  linus
# New version
#
# Revision 35.12  1994/01/06  00:54:49  linus
Linus Tolke Y's avatar
Linus Tolke Y committed
83
84
85
# Fixed bugs in install.
#
# Revision 35.11  1994/01/06  00:40:23  linus
Linus Tolke Y's avatar
Linus Tolke Y committed
86
87
88
# Install directive moved here.
#
# Revision 35.10  1994/01/06  00:04:42  linus
89
90
# Fixed so info-nuke works even if infod using makeinfo.
#
Linus Tolke Y's avatar
Linus Tolke Y committed
91
#
Per Cederqvist's avatar
.  
Per Cederqvist committed
92
93
# If you edit this, make sure it works afterwards also. /Linus

94
CLIENTVERSION = 0.45.1
95
96
97

SHELL = /bin/sh
RM = rm -vf
98

David Kågedal's avatar
David Kågedal committed
99
100
101
INFODIR = /usr/gnu/info
FTPDIR = /usr/ftp/pub/lyskom/elisp-client

102
103
104
all: elisp-client elisp-client.txt elisp-client.dvi
.PHONY: all

105
106
elisp-client: elisp-client.texinfo
	makeinfo elisp-client.texinfo
Per Cederqvist's avatar
.  
Per Cederqvist committed
107

108
elisp-client.txt: elisp-client
109
110
111
112
113
114
115
116
117
	if [ -s elisp-client-1 ] ; then \
		mv elisp-client info.index ; \
		echo e | tr e '\037' | cat elisp-client-? - > elisp-client ; \
	fi
	emacs -batch -l `pwd`/info-nuke -f batch-info-nuke `pwd`/elisp-client
	if [ -s elisp-client-1 ] ; then \
		rm elisp-client ; \
		mv info.index elisp-client ; \
	fi
118

119
INDEXES = elisp-client.fns elisp-client.kys elisp-client.vrs
120

121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
indexes: elisp-client.texinfo
	@echo pass 1
	rm -f indexes
	tex elisp-client.texinfo
	mv elisp-client.dvi indexes

$(INDEXES): indexes
	@echo pass 2 indexes
	touch $(INDEXES)
	emacs -batch -l ./texindex.el -f batch-texindex elisp-client.cp elisp-client.fn elisp-client.ky elisp-client.pg elisp-client.tp elisp-client.vr

elisp-client.dvi: $(INDEXES)
	@echo pass 3
	tex elisp-client.texinfo

136
137
138
lyskom-variables.data: lyskom-commands.data

lyskom-commands.data: ../src/lyskom.el
139
	emacs -batch -l makedoc.el -l ../src/widget.el -f lyskom-update-documentation
140
141


Linus Tolke Y's avatar
Linus Tolke Y committed
142
143
.PHONY: install
install: elisp-client elisp-client.txt
David Kågedal's avatar
David Kågedal committed
144
145
146
	cp elisp-client elisp-client-? $(INFODIR)

release: elisp-client elisp-client.txt
147
	cp NEWS-$(CLIENTVERSION) $(FTPDIR)
Linus Tolke Y's avatar
Linus Tolke Y committed
148
	(VER=`grep "^Dokumentationen uppdaterad till klient version " elisp-client.texinfo | \
Linus Tolke Y's avatar
Linus Tolke Y committed
149
	sed -n 's/^.* version \(.*\)$$/\1/p'` ; \
Linus Tolke Y's avatar
Linus Tolke Y committed
150
151
152
153
	tar cf elisp-client.info-$${VER}.tar elisp-client elisp-client-? ; \
	gzip elisp-client.info-$${VER}.tar; \
	gzip < elisp-client.txt > elisp-client.txt-$${VER}.gz; \
	mv elisp-client.info-$${VER}.tar.gz elisp-client.txt-$${VER}.gz \
David Kågedal's avatar
David Kågedal committed
154
	 $(FTPDIR); )
Linus Tolke Y's avatar
Linus Tolke Y committed
155
156


157
158
159
160
smallclean:
	$(RM) *.fns *.kys *.pgs *.tps *.vrs *.cps indexes

clean: smallclean
161
	$(RM) elisp-client elisp-client-? info.index elisp-client.txt
162
163
164
165
166
	$(RM) *.aux *.dvi 
	$(RM) *.fn  *.ky  *.pg  *.tp  *.vr  *.cp
	$(RM) *.toc
	$(RM) *.bbl *.blg *.idx *.ilg *.ind *.log
	$(RM) core *~