-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
184 lines (157 loc) · 5.54 KB
/
Makefile
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
# make all to compile and build Emacs
# make install to install it
# make install.sysv to install on system V.
# make install.xenix to install on Xenix
# make install.aix to install on AIX.
# make install.decosf to install on DEC OSF/1.
# make tags to update tags tables
#
# make distclean to delete everything that wasn't in the distribution
# This is a very dangerous thing to do!
# make clean
# This is a little less dangerous.
# 92.3.16 modified for Mule Ver.0.9.1 by K.Handa <[email protected]>
# 92.9.8 modified for Mule Ver.0.9.6 by K.Handa <[email protected]>
# 92.10.2 modified for Mule Ver.0.9.6 by K.Handa <[email protected]>
# New macro INSTALLFLAGS
# 92.10.16 modified for Mule Ver.0.9.6 by K.Handa <[email protected]>
# mule.1 and m2ps.1 are configured for each site.
# 93.5.27 modified for Mule Ver.0.9.8 by K.Handa <[email protected]>
# SED is defined just as 'sed'.
SHELL = /bin/sh
# Where to install things
# Note that on system V you must change MANDIR to /use/local/man/man1.
# This got changed in late 1991 to say /usr/local/lib/emacs,
# but there was no explanation of why, so it seems better to keep this stable.
LIBDIR= /usr/local/mule
BINDIR= /usr/local/bin
MANDIR= /usr/local/man
MAN1DIR= ${MANDIR}/man1
# Flags passed down to subdirectory makefiles.
MFLAGS=
# Command used for installation.
# If `install' doesn't work on your system, try `./install.sh'.
INSTALL=install
INSTALLFLAGS=-c -m 1755
# Command used for modifying path.h
SED = sed
# Subdirectories to make recursively. `lisp' is not included
# because the compiled lisp files are part of the distribution
# and you cannot remake them without installing Emacs first.
SUBDIR= etc src
# Subdirectories to install
COPYDIR= etc info lisp
# Subdirectories to clean
CLEANDIR= ${COPYDIR} lisp/term oldXMenu
all: src/paths.h etc/mule.1 etc/m2ps.1 ${SUBDIR}
src/paths.h: Makefile src/paths.h-dist
$(SED) 's;/usr/local/emacs;${LIBDIR};g' < src/paths.h-dist > $@
etc/mule.1: Makefile etc/mule.1-dist
$(SED) 's;/usr/local/emacs;${LIBDIR};g' < etc/mule.1-dist > $@
etc/m2ps.1: Makefile etc/m2ps.1-dist
$(SED) 's;/usr/local/emacs;${LIBDIR};g' < etc/m2ps.1-dist > $@
src: etc
.RECURSIVE: ${SUBDIR}
${SUBDIR}: FRC
cd $@; make ${MFLAGS} all
install: all mkdir lockdir
# B option to tar xf removed because some systems don't have it.
# It should work without that as long as the same tar program
# is running on both sides of the pipe.
-if [ `/bin/pwd` != `(cd ${LIBDIR}; /bin/pwd)` ] ; then \
tar cf - ${COPYDIR} | (cd ${LIBDIR}; umask 0; tar xf - ) ;\
for i in ${CLEANDIR}; do \
(rm -rf ${LIBDIR}/$$i/RCS; \
rm -f ${LIBDIR}/$$i/\#*; \
rm -f ${LIBDIR}/$$i/*~); \
done; \
else true; \
fi
$(INSTALL) -c etc/emacsclient ${BINDIR}/emacsclient
$(INSTALL) -c etc/etags ${BINDIR}/etags
$(INSTALL) -c etc/ctags ${BINDIR}/ctags
$(INSTALL) -c etc/m2ps ${BINDIR}/m2ps
$(INSTALL) $(INSTALLFLAGS) src/xemacs ${BINDIR}/xemacs
$(INSTALL) -c -m 444 etc/mule.1 ${MAN1DIR}/mule.1
$(INSTALL) -c -m 444 etc/m2ps.1 ${MAN1DIR}/m2ps.1
-rm -f ${BINDIR}/mule
mv ${BINDIR}/xemacs ${BINDIR}/mule
install.sysv: all mkdir lockdir
-if [ `/bin/pwd` != `(cd ${LIBDIR}; /bin/pwd)` ] ; then \
find ${COPYDIR} -print | cpio -pdum ${LIBDIR} ;\
for i in ${CLEANDIR}; do \
(rm -rf ${LIBDIR}/$$i/RCS; \
rm -f ${LIBDIR}/$$i/\#*; \
rm -f ${LIBDIR}/$$i/*~); \
done \
else true; \
fi
-cpset etc/emacsclient ${BINDIR}/emacsclient 755 bin bin
-cpset etc/etags ${BINDIR}/etags 755 bin bin
-cpset etc/ctags ${BINDIR}/ctags 755 bin bin
-cpset etc/m2ps ${BINDIR}/m2ps 755 bin bin
-cpset etc/mule.1 ${MANDIR}/mule.1 444 bin bin
-cpset etc/m2ps.1 ${MANDIR}/m2ps.1 444 bin bin
-/bin/rm -f ${BINDIR}/mule
-cpset src/xemacs ${BINDIR}/mule 1755 bin bin
install.xenix: all mkdir lockdir
if [ `pwd` != `(cd ${LIBDIR}; pwd)` ] ; then \
tar cf - ${COPYDIR} | (cd ${LIBDIR}; umask 0; tar xpf - ) ;\
for i in ${CLEANDIR}; do \
(rm -rf ${LIBDIR}/$$i/RCS; \
rm -f ${LIBDIR}/$$i/\#*; \
rm -f ${LIBDIR}/$$i/*~); \
done \
else true; \
fi
cp etc/etags etc/ctags etc/emacsclient etc/m2ps ${BINDIR}
chmod 755 ${BINDIR}/etags ${BINDIR}/ctags ${BINDIR}/emacsclient
chmod 755 ${BINDIR}/m2ps
cp etc/mule.1 ${MANDIR}/mule.1
chmod 444 ${MANDIR}/mule.1
cp etc/m2ps.1 ${MANDIR}/m2ps.1
chmod 444 ${MANDIR}/m2ps.1
-mv -f ${BINDIR}/mule ${BINDIR}/mule.old
cp src/xemacs ${BINDIR}/mule
chmod 1755 ${BINDIR}/mule
-rm -f ${BINDIR}/mule.old
install.aix: all mkdir lockdir
-if [ `/bin/pwd` != `(cd ${LIBDIR}; /bin/pwd)` ] ; then \
tar cf - ${COPYDIR} | (cd ${LIBDIR}; umask 0; tar xBf - ) ;\
for i in ${CLEANDIR}; do \
(rm -rf ${LIBDIR}/$$i/RCS; \
rm -f ${LIBDIR}/$$i/\#*; \
rm -f ${LIBDIR}/$$i/*~); \
done \
else true; \
fi
install -f ${BINDIR} etc/emacsclient
install -f ${BINDIR} etc/etags
install -f ${BINDIR} etc/ctags
install -f ${BINDIR} etc/m2ps
install -M 1755 -f ${BINDIR} src/xemacs
install -M 444 -f ${MANDIR} etc/mule.1
install -M 444 -f ${MANDIR} etc/m2ps.1
-rm -f ${BINDIR}/mule
mv ${BINDIR}/xemacs ${BINDIR}/mule
install.decosf:
make LIBDIR=${LIBDIR} BINDIR=${BINDIR} MANDIR=${MANDIR} \
MFLAGS=${MFLAGS} INSTALL=/usr/bin/installbsd install
mkdir: FRC
-mkdir -p ${LIBDIR} ${BINDIR} ${MANDIR} ${MAN1DIR}
distclean:
for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} distclean); done
cd oldXMenu; make ${MFLAGS} distclean
clean:
cd src; make clean
cd oldXMenu; make ${MFLAGS} clean
if [ `/bin/pwd` != `(cd ${LIBDIR}; /bin/pwd)` ] ; then \
cd etc; make clean; \
else true; \
fi
lockdir:
-mkdir -p ${LIBDIR}/lock
-chmod 777 ${LIBDIR}/lock
FRC:
tags: etc
cd src; ../etc/etags *.[ch] ../lisp/*.el ../lisp/term/*.el