distribution-Makefile.in 2.46 KB
Newer Older
David Byers's avatar
David Byers committed
1
2
3
4
5
# -*- Makefile -*-
# Copyright (C) 1997  Lysator Academic Computer Association.
#

# ======================================================================
6
7
# EMACS is the command used to start Emacs on your system. Read README
# for information about the Emacs versions that can be used.
David Byers's avatar
David Byers committed
8
9
# ======================================================================

10
EMACS = @emacs@
David Byers's avatar
David Byers committed
11
12
13


# ======================================================================
14
15
# The following lines control where things go when installed.
#
David Byers's avatar
David Byers committed
16
17
18
19
# 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


# ======================================================================
# LANGUAGE is a list of languages to compile in. Entries in the list
27
# are separated by whitespace. The following languages are available:
David Byers's avatar
David Byers committed
28
29
30
31
32
33
34
35
#
#	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
#		You should change nothing beyond this point.
David Byers's avatar
David Byers committed
43
44
45
46
#
# ======================================================================
# ======================================================================

47
48
RM = /bin/rm -f
SHELL = /bin/sh
49
LANGUAGE-EL = $(LANGUAGES:=-strings.el) $(LANGUAGES:=-help.el)
50
EMACS-BATCH = $(EMACS) -batch
51
52
53
HEADER1 = @@HEADER1@@
HEADER2 = @@HEADER2@@
VERSION-EL = @@VERSION-EL@@
54
SOURCES	 = @@SOURCES@@
David Byers's avatar
David Byers committed
55

56
all: envcheck lyskom-@@CLIENTVERSION@@.elc
David Byers's avatar
David Byers committed
57
58

envcheck:
59
	$(EMACS-BATCH) -l envcheck.el -f lyskom-check-environment
David Byers's avatar
David Byers committed
60

61
lyskom-@@CLIENTVERSION@@.elc: lyskom-@@CLIENTVERSION@@.el
62
	$(EMACS-BATCH) -l lpath.el -l help-compile.el -f batch-byte-compile lyskom-@@CLIENTVERSION@@.el
David Byers's avatar
David Byers committed
63

64
65
lyskom-@@CLIENTVERSION@@.el: $(HEADER1) $(VERSION-EL) $(HEADER2) $(LANGUAGE-EL) $(SOURCES)
	cat $^ >lyskom-@@CLIENTVERSION@@.el
David Byers's avatar
David Byers committed
66

67
68
install: lyskom-@@CLIENTVERSION@@.elc
	cp lyskom-@@CLIENTVERSION@@.el lyskom-@@CLIENTVERSION@@.elc $(LISPDIR)
69
	rm -f $(LISPDIR)/lyskom.el
70
	ln -s lyskom-@@CLIENTVERSION@@.el $(LISPDIR)/lyskom.el
71
	rm -f $(LISPDIR)/lyskom.elc
72
	ln -s lyskom-@@CLIENTVERSION@@.elc $(LISPDIR)/lyskom.elc
David Byers's avatar
David Byers committed
73
74

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