aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-05-25 20:11:39 +0000
committerRichard M. Stallman1993-05-25 20:11:39 +0000
commit3d3bd052687e86c314582b7c9fda1125a57d1c87 (patch)
tree6e76d84fe0f77528ae8510612dd9b559dcfae254 /lib-src
parentf9150fd9ab639900ad8fefde43b1d9635f2b3f3d (diff)
downloademacs-3d3bd052687e86c314582b7c9fda1125a57d1c87.tar.gz
emacs-3d3bd052687e86c314582b7c9fda1125a57d1c87.zip
(install): Don't handle INSTALLABLE_SCRIPTS
in first loop. Delete files from bindir before installing new ones. (ALL_CFLAGS): Use ${srcdir} to find .../src dir.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/Makefile.in12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
index bac1bbc568d..85565fc5f43 100644
--- a/lib-src/Makefile.in
+++ b/lib-src/Makefile.in
@@ -42,10 +42,11 @@ bindir=${exec_prefix}/bin
42# data. ${archlibdir} is usually below this. 42# data. ${archlibdir} is usually below this.
43libdir=${exec_prefix}/lib 43libdir=${exec_prefix}/lib
44 44
45# Where to find the source code. The source code for Emacs's C kernel is 45# Where to find the source code. This is
46# expected to be in ${srcdir}/src, and the source code for Emacs's
47# utility programs is expected to be in ${srcdir}/lib-src. This is
48# set by the configure script's `--srcdir' option. 46# set by the configure script's `--srcdir' option.
47# However, the value of ${srcdir} in this makefile
48# is not identical to what was specified with --srcdir.
49# The variable here has `/lib-src' added at the end.
49srcdir=@srcdir@/lib-src 50srcdir=@srcdir@/lib-src
50VPATH=@srcdir@/lib-src 51VPATH=@srcdir@/lib-src
51 52
@@ -102,7 +103,7 @@ SOURCES = COPYING ChangeLog Makefile.in README aixcc.lex emacs.csh \
102### Some other files - those shared with other GNU utilities - need 103### Some other files - those shared with other GNU utilities - need
103### HAVE_CONFIG_H #defined before they know they can take advantage of 104### HAVE_CONFIG_H #defined before they know they can take advantage of
104### the information in ../src/config.h. 105### the information in ../src/config.h.
105ALL_CFLAGS = ${C_SWITCH_SYSTEM} -Demacs -DHAVE_CONFIG_H -I../src ${CFLAGS} 106ALL_CFLAGS = ${C_SWITCH_SYSTEM} -Demacs -DHAVE_CONFIG_H -I${srcdir}/../src ${CFLAGS}
106.c.o: 107.c.o:
107 ${CC} -c ${CPPFLAGS} ${ALL_CFLAGS} $< 108 ${CC} -c ${CPPFLAGS} ${ALL_CFLAGS} $<
108 109
@@ -137,7 +138,7 @@ ${archlibdir}: all
137install: ${archlibdir} 138install: ${archlibdir}
138 @echo 139 @echo
139 @echo "Installing utilities for users to run." 140 @echo "Installing utilities for users to run."
140 for file in ${INSTALLABLES} ${INSTALLABLE_SCRIPTS} ; do \ 141 for file in ${INSTALLABLES} ; do \
141 cp $${file} ${bindir}/$${file}.new ; \ 142 cp $${file} ${bindir}/$${file}.new ; \
142 chmod 755 ${bindir}/$${file}.new ; \ 143 chmod 755 ${bindir}/$${file}.new ; \
143 done 144 done
@@ -147,6 +148,7 @@ install: ${archlibdir}
147 -for file in emacsclient etags ctags b2m ; do \ 148 -for file in emacsclient etags ctags b2m ; do \
148 chgrp bin ${bindir}/$${file}.new ; \ 149 chgrp bin ${bindir}/$${file}.new ; \
149 chown bin ${bindir}/$${file}.new ; \ 150 chown bin ${bindir}/$${file}.new ; \
151 rm -f ${bindir}/$${file} ; \
150 mv ${bindir}/$${file}.new ${bindir}/$${file} ; \ 152 mv ${bindir}/$${file}.new ${bindir}/$${file} ; \
151 done 153 done
152 154