-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.in
More file actions
116 lines (88 loc) · 2.43 KB
/
Copy pathMakefile.in
File metadata and controls
116 lines (88 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
## This is a -*- makefile -*-
# What the Emacs 19 binary is called on your system
EMACS = @EMACS@
# What the Erlang compiler binary is called on your system
ERLC = @ERLC@
# Prefix for constructing installation directory paths
prefix = @prefix@
exec_prefix = $(prefix)
# Shared directory for read-only data files
datadir = $(prefix)/share
# Where to put the .el and .elc files
lispdir=$(datadir)/emacs/site-lisp
# Installation command
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
# Various auxiliary programs
tar=tar
grep=grep
sed=sed
rm=rm
ln=ln
mkdir=mkdir
tar=tar
srcdir = @srcdir@
VPATH = @srcdir@
ELISP_SOURCES = resh.el
ELISP_OBJECTS = resh.elc
ERLANG_SOURCES = reshd.erl
ERLANG_OBJECTS = reshd.beam
SOURCES = $(ERLANG_SOURCES) $(ELISP_SOURCES)
OBJECTS = $(ERLANG_OBJECTS) $(ELISP_OBJECTS)
DISTFILES = $(SOURCES) reshd.pub README license.txt \
Makefile.in configure configure.in load-path.hack \
mkinstalldirs install-sh ChangeLog
SHELL = /bin/sh
#.PHONY: all clean dist distclean install \
# installdirs ps uninstall
.SUFFIXES:
.SUFFIXES: .elc .el .beam .erl
.el.elc:
$(EMACS) -batch -l $(srcdir)/load-path.hack \
-f batch-byte-compile $<
.erl.beam:
$(ERLC) $<
all: $(OBJECTS)
install: all installdirs
for f in $(ELISP_SOURCES); do \
$(INSTALL_DATA) $(srcdir)/$$f $(lispdir); \
done;
for f in $(ELISP_OBJECTS); do \
$(INSTALL_DATA) $$f $(lispdir); \
done;
# Make sure all installation directories actually exist
# by making them if necessary.
installdirs: mkinstalldirs
$(srcdir)/mkinstalldirs $(lispdir)
uninstall:
-cd $(lispdir) && rm -f $(ELISP_SOURCES) $(ELISP_OBJECTS)
TAGS: $(SOURCES)
cd $(srcdir) && etags $(SOURCES)
clean:
rm -f $(OBJECTS)
-rm -f *.aux *.cp *.cps *.fn *.ky *.log *.pg *.toc *.tp *.vr
-rm -f *.html
rm -f TAGS
rm -f erl_crash.dump
distclean: clean
-rm -f *~ *.tar.gz
rm -f Makefile config.status config.cache config.log
${srcdir}/configure: configure.in
cd ${srcdir} && autoconf
Makefile: Makefile.in config.status
./config.status
config.status: ${srcdir}/configure
./config.status --recheck
dist: $(DISTFILES)
version=`$(grep) vsn reshd.pub | \
$(sed) 's/^.*{\([0-9][,0-9]*\)}.*$$/\1/' | \
$(sed) 's/,/./g'`;\
distname=reshd-$$version; \
$(rm) -rf $$distname; \
$(mkdir) $$distname; \
for file in $(DISTFILES); do \
$(ln) $$file $$distname/$$file; \
done; \
$(tar) -chz -f $$distname.tar.gz $$distname; \
$(tar) -chz -f $$distname.tgz $$distname; \
$(rm) -rf $$distname