=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/strip/Attic/Makefile,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- src/usr.bin/strip/Attic/Makefile 1996/12/08 14:32:35 1.3 +++ src/usr.bin/strip/Attic/Makefile 1997/02/11 17:42:51 1.4 @@ -1,12 +1,22 @@ -# $OpenBSD: Makefile,v 1.3 1996/12/08 14:32:35 downsj Exp $ +# $OpenBSD: Makefile,v 1.4 1997/02/11 17:42:51 deraadt Exp $ PROG= strip +.if ${HOSTCC} != ${CC} +STRIP=./hoststrip +realinstall:: hoststrip + +hoststrip: strip.c + ${HOSTCC} strip.c -o hoststrip +.else +STRIP=./strip +.endif + realinstall: ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 600 strip \ ${DESTDIR}${BINDIR} - ./strip ${DESTDIR}${BINDIR}/strip + ${STRIP} ${DESTDIR}${BINDIR}/strip chmod ${BINMODE} ${DESTDIR}${BINDIR}/strip - -if [ "${COPY}" = "" ]; then rm -f ./strip; fi + -if [ "${COPY}" = "" ]; then rm -f ${STRIP}; fi .include