Makefile 3.16 KB
Newer Older
Linus Tolke Y's avatar
Linus Tolke Y committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# $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.
#
23
24
25
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
# $Log$
26
27
28
29
# Revision 40.0  1996/03/26 08:28:01  byers
# New version number for release of 0.40
# Added NEWS file for 0.40
#
30
# Revision 39.0  1996/03/14 18:14:56  davidk
31
# kade revisionsnumret till 39.0.
32
#
Linus Tolke Y's avatar
Linus Tolke Y committed
33
34
35
36
# 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
37
38
39
# Fixed bugs in install.
#
# Revision 35.11  1994/01/06  00:40:23  linus
Linus Tolke Y's avatar
Linus Tolke Y committed
40
41
42
# Install directive moved here.
#
# Revision 35.10  1994/01/06  00:04:42  linus
43
44
# Fixed so info-nuke works even if infod using makeinfo.
#
Linus Tolke Y's avatar
Linus Tolke Y committed
45
#
Per Cederqvist's avatar
.  
Per Cederqvist committed
46
47
# If you edit this, make sure it works afterwards also. /Linus

48
RM = rm -f
49

50
51
52
all: elisp-client elisp-client.txt elisp-client.dvi
.PHONY: all

53
54
elisp-client: elisp-client.texinfo
	makeinfo elisp-client.texinfo
Per Cederqvist's avatar
.  
Per Cederqvist committed
55

56
elisp-client.txt: elisp-client
57
58
59
60
61
62
63
64
65
	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
66

67
INDEXES = elisp-client.fns elisp-client.kys elisp-client.vrs
68

69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
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

Linus Tolke Y's avatar
Linus Tolke Y committed
84
85
86
87
.PHONY: install
install: elisp-client elisp-client.txt
	cp elisp-client elisp-client-? /usr/gnu/info
	(VER=`grep "^Dokumentationen uppdaterad till klient version " elisp-client.texinfo | \
Linus Tolke Y's avatar
Linus Tolke Y committed
88
	sed -n 's/^.* version \(.*\)$$/\1/p'` ; \
Linus Tolke Y's avatar
Linus Tolke Y committed
89
90
91
92
93
94
95
	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 \
	 /usr/ftp/pub/lyskom/elisp-client; )


96
97
98
99
smallclean:
	$(RM) *.fns *.kys *.pgs *.tps *.vrs *.cps indexes

clean: smallclean
100
	$(RM) elisp-client elisp-client-? info.index elisp-client.txt
101
102
103
104
105
	$(RM) *.aux *.dvi 
	$(RM) *.fn  *.ky  *.pg  *.tp  *.vr  *.cp
	$(RM) *.toc
	$(RM) *.bbl *.blg *.idx *.ilg *.ind *.log
	$(RM) core *~