Splitting "realinstall" into parts was a (failed) part of the work

in progress, and should not have been committed in revision 1.114.
This broke gnu/usr.bin/binutils/strip and usr.bin/strip makefiles;
they were now attempting to install and strip "strip" from objdir.

Pointed out by:	bde

This has nothing to do with PR misc/37516.
This commit is contained in:
Ruslan Ermilov 2002-04-29 16:00:30 +00:00
parent 96a2d897a7
commit 9e84c09c36

View File

@ -103,9 +103,8 @@ _INSTALLFLAGS:= ${INSTALLFLAGS}
_INSTALLFLAGS:= ${_INSTALLFLAGS${ie}}
.endfor
realinstall: beforeinstall
realinstall: _proginstall
_proginstall:
.if !target(realinstall)
realinstall:
.if defined(PROG)
.if defined(PROGNAME)
${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
@ -119,8 +118,6 @@ _proginstall:
(cd ${DESTDIR}${ORIGBINDIR}; ln -fs dm ${PROG}; \
chown -h ${BINOWN}:${ORIGBINGRP} ${PROG})
.endif
realinstall:
.if defined(LINKS) && !empty(LINKS)
@set ${LINKS}; \
while test $$# -ge 2; do \
@ -143,6 +140,8 @@ realinstall:
ln -fs $$l $$t; \
done; true
.endif
.endif !target(realinstall)
realinstall: beforeinstall
.if defined(SCRIPTS) && !empty(SCRIPTS)
realinstall: _scriptsinstall