Makefile 2.91 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
# Please mail bug reports to bug-lyskom@lysator.liu.se.
Per Cederqvist's avatar
.  
Per Cederqvist committed
24

David Byers's avatar
David Byers committed
25
CLIENTVERSION = 0.46-BETA-5
26 27 28

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

David Kågedal's avatar
David Kågedal committed
30 31 32
INFODIR = /usr/gnu/info
FTPDIR = /usr/ftp/pub/lyskom/elisp-client

33 34 35
all: elisp-client elisp-client.txt elisp-client.dvi
.PHONY: all

36 37
elisp-client: elisp-client.texinfo
	makeinfo elisp-client.texinfo
Per Cederqvist's avatar
.  
Per Cederqvist committed
38

39
elisp-client.txt: elisp-client
40 41 42 43 44 45 46 47 48
	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
49

50
INDEXES = elisp-client.fns elisp-client.kys elisp-client.vrs
51

52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
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

67 68 69
lyskom-variables.data: lyskom-commands.data

lyskom-commands.data: ../src/lyskom.el
70
	emacs -batch -l makedoc.el -l ../src/widget.el -f lyskom-update-documentation
71 72


Linus Tolke Y's avatar
Linus Tolke Y committed
73 74
.PHONY: install
install: elisp-client elisp-client.txt
David Kågedal's avatar
David Kågedal committed
75 76 77
	cp elisp-client elisp-client-? $(INFODIR)

release: elisp-client elisp-client.txt
78
	cp NEWS-$(CLIENTVERSION) $(FTPDIR)
Linus Tolke Y's avatar
Linus Tolke Y committed
79
	(VER=`grep "^Dokumentationen uppdaterad till klient version " elisp-client.texinfo | \
Linus Tolke Y's avatar
Linus Tolke Y committed
80
	sed -n 's/^.* version \(.*\)$$/\1/p'` ; \
Linus Tolke Y's avatar
Linus Tolke Y committed
81 82 83 84
	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
85
	 $(FTPDIR); )
Linus Tolke Y's avatar
Linus Tolke Y committed
86 87


88 89 90 91
smallclean:
	$(RM) *.fns *.kys *.pgs *.tps *.vrs *.cps indexes

clean: smallclean
92
	$(RM) elisp-client elisp-client-? info.index elisp-client.txt
93 94 95 96 97
	$(RM) *.aux *.dvi 
	$(RM) *.fn  *.ky  *.pg  *.tp  *.vr  *.cp
	$(RM) *.toc
	$(RM) *.bbl *.blg *.idx *.ilg *.ind *.log
	$(RM) core *~