distribution-Makefile.in 3.06 KB
Newer Older
David Byers's avatar
David Byers committed
1
2
3
4
5
6
7
8
9
10
# -*- Makefile -*-
# $Id$
# Copyright (C) 1997  Lysator Academic Computer Association.
#

# ======================================================================
# EMACS is the command used to start Emacs on your system. You need
# Gnu Emacs 19.34 or later, or XEmacs 19.15 or 20.2 or later.
# ======================================================================

11
EMACS=@emacs@
David Byers's avatar
David Byers committed
12
13
14
15
16
17
18
19


# ======================================================================
# The following lines control where things go when installed
# LISPDIR is where lyskom.el and lyskom.elc go
# INFODIR is where documentation goes (if there is any)
# ======================================================================

20
21
22
prefix=@prefix@
LISPDIR=@lispdir@
INFODIR=@infodir@
David Byers's avatar
David Byers committed
23
24
25
26
27
28
29
30
31
32
33
34
35


# ======================================================================
# LANGUAGE is a list of languages to compile in. Entries in the list
# are separated by whitespace. The following # languages are available
#
#	Name in list		Language
#	swedish			Swedish
#	english			U.S. English
#
# The first language in the list will be the default language.
# ======================================================================

36
LANGUAGES=@languages@
David Byers's avatar
David Byers committed
37
38
39
40
41
42
43
44
45
46
47
48


# ======================================================================
# ======================================================================
#
#		You should change nothing beyond this point
#
# ======================================================================
# ======================================================================

RM=/bin/rm -f
SHELL=/bin/sh
David Byers's avatar
David Byers committed
49
LANGUAGE-EL=$(LANGUAGES:=-strings.el)
David Byers's avatar
David Byers committed
50
51
52
53
54
55
EMACS-BATCH=$(EMACS) -batch
SOURCES	 = 	$(LANGUAGE-EL) \
		komtypes.el \
		clienttypes.el \
		deferred-insert.el \
		utilities.el \
56
		completing-read.el \
57
		command.el \
David Byers's avatar
David Byers committed
58
		buffers.el \
59
		aux-items.el \
60
		mime.el \
David Byers's avatar
David Byers committed
61
62
63
64
65
66
67
		prefetch.el \
		startup.el \
		reading.el \
		internal.el \
		services.el \
		parse.el \
		cache.el \
David Byers's avatar
David Byers committed
68
		view-mode.el \
David Byers's avatar
David Byers committed
69
70
71
72
73
74
75
76
77
		commands1.el \
		commands2.el \
		review.el \
		edit-text.el \
		filter.el \
		filter-edit.el \
		lyskom-buttons.el \
		view-text.el \
		async.el \
78
		mship-edit.el \
David Byers's avatar
David Byers committed
79
80
81
82
83
84
85
86
		prioritize.el \
		flags.el \
		messages.el \
		ansaphone.el \
		remote-control.el \
		menus.el slow.el \
		elib-string.el \
		option-edit.el \
David Byers's avatar
David Byers committed
87
		talkback.el \
David Byers's avatar
David Byers committed
88
89
		lyskom-rest.el

David Byers's avatar
David Byers committed
90
91
HEADER = 	header.el \
		defvar.el \
92
		feature.el \
David Byers's avatar
David Byers committed
93
94
95
96
97
98
		vars.el \
		macros.el \
		compatibility.el \
		language.el


99
all: envcheck lyskom-@@CLIENTVERSION@@.elc
David Byers's avatar
David Byers committed
100
101
102
103

envcheck:
	$(EMACS-BATCH) -l ./envcheck.el -f lyskom-check-environment

104
105
lyskom-@@CLIENTVERSION@@.elc: lyskom-@@CLIENTVERSION@@.el
	$(EMACS-BATCH) -l ./lpath.el -f batch-byte-compile lyskom-@@CLIENTVERSION@@.el
David Byers's avatar
David Byers committed
106

107
108
lyskom-@@CLIENTVERSION@@.el: $(HEADER) $(SOURCES) 
	cat $(HEADER) $(SOURCES) > lyskom-@@CLIENTVERSION@@.el
David Byers's avatar
David Byers committed
109

110
111
install: lyskom-@@CLIENTVERSION@@.elc
	cp lyskom-@@CLIENTVERSION@@.el lyskom-@@CLIENTVERSION@@.elc $(LISPDIR)
112
113
	rm -f $(LISPDIR)/lyskom.el
	ln -s $(LISPDIR)/lyskom-@@CLIENTVERSION@@.el $(LISPDIR)/lyskom.el
114
	rm -f $(LISPDIR)/lyskom.elc
115
	ln -s $(LISPDIR)/lyskom-@@CLIENTVERSION@@.elc $(LISPDIR)/lyskom.elc
David Byers's avatar
David Byers committed
116
117

clean:
118
	$(RM) lyskom-@@CLIENTVERSION@@.el
David Byers's avatar
David Byers committed
119
	$(RM) *~ *.elc core *.bak