Commit 80fce268 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(${archlibdir}, install): Use $(INSTALL_PROGRAM)

for all executables and scripts.
parent 3f628ebd
...@@ -118,31 +118,22 @@ ${archlibdir}: all ...@@ -118,31 +118,22 @@ ${archlibdir}: all
if [ `(cd ${archlibdir} && /bin/pwd)` != `/bin/pwd` ]; then \ if [ `(cd ${archlibdir} && /bin/pwd)` != `/bin/pwd` ]; then \
for file in ${UTILITIES}; do \ for file in ${UTILITIES}; do \
$(INSTALL_PROGRAM) $$file ${archlibdir}/$$file ; \ $(INSTALL_PROGRAM) $$file ${archlibdir}/$$file ; \
chmod 755 ${archlibdir}/$$file ; \
done ; \ done ; \
for file in ${SCRIPTS}; do \ for file in ${SCRIPTS}; do \
$(INSTALL_PROGRAM) ${srcdir}/$$file ${archlibdir}/$$file ; \ $(INSTALL_PROGRAM) ${srcdir}/$$file ${archlibdir}/$$file ; \
chmod 755 ${archlibdir}/$$file ; \
done ; \ done ; \
fi fi
# We don't need to install `wakeup' explicitly, because it will be copied when # We don't need to install `wakeup' explicitly, because it will be copied when
# this whole directory is copied. # this whole directory is copied.
# We use .n, not .new as before, to avoid exceeding the 14-character limit.
install: ${archlibdir} install: ${archlibdir}
@echo @echo
@echo "Installing utilities for users to run." @echo "Installing utilities for users to run."
for file in ${INSTALLABLES} ; do \ for file in ${INSTALLABLES} ; do \
cp $${file} ${bindir}/$${file}.n ; \ $(INSTALL_PROGRAM) $${file} ${bindir}/$${file} ; \
chmod 755 ${bindir}/$${file}.n ; \
done done
for file in ${INSTALLABLE_SCRIPTS} ; do \ for file in ${INSTALLABLE_SCRIPTS} ; do \
cp ${srcdir}/$${file} ${bindir}/$${file}.n ; \ $(INSTALL_PROGRAM) ${srcdir}/$${file} ${bindir}/$${file} ; \
chmod 755 ${bindir}/$${file}.n ; \
done
-for file in ${INSTALLABLES} ${INSTALLABLE_SCRIPTS} ; do \
rm -f ${bindir}/$${file} ; \
mv ${bindir}/$${file}.n ${bindir}/$${file} ; \
done done
uninstall: uninstall:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment