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

# ======================================================================
7
8
# 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
9
10
# ======================================================================

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


# ======================================================================
15
16
# The following lines control where things go when installed.
#
David Byers's avatar
David Byers committed
17
18
19
20
# LISPDIR is where lyskom.el and lyskom.elc go
# INFODIR is where documentation goes (if there is any)
# ======================================================================

21
22
23
prefix = @prefix@
LISPDIR = @lispdir@
INFODIR = @infodir@
David Byers's avatar
David Byers committed
24
25
26
27


# ======================================================================
# LANGUAGE is a list of languages to compile in. Entries in the list
28
# are separated by whitespace. The following languages are available:
David Byers's avatar
David Byers committed
29
30
31
32
33
34
35
36
#
#	Name in list		Language
#	swedish			Swedish
#	english			U.S. English
#
# The first language in the list will be the default language.
# ======================================================================

37
LANGUAGES = @languages@
David Byers's avatar
David Byers committed
38
39
40
41
42


# ======================================================================
# ======================================================================
#
43
#		You should change nothing beyond this point.
David Byers's avatar
David Byers committed
44
45
46
47
#
# ======================================================================
# ======================================================================

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

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

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

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

63
64
lyskom-@@CLIENTVERSION@@.el: $(HEADER) $(LANGUAGE-EL) $(SOURCES)
	cat $(HEADER) $(LANGUAGE-EL) $(SOURCES) >lyskom-@@CLIENTVERSION@@.el
David Byers's avatar
David Byers committed
65

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

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