diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-02-11 17:42:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-02-11 17:42:52 +0000 |
commit | 9c5075a0048df850c9e09020db0435b436547c2e (patch) | |
tree | 4538e634799f4883ee4c71e1870525b1413f2db9 /usr.bin/strip/Makefile | |
parent | dc0dc37799c03276d10c21a546fe99b709f5b13e (diff) |
build hoststrip for install purposes; noted by tv@slack.iag.net, pr #88
Diffstat (limited to 'usr.bin/strip/Makefile')
-rw-r--r-- | usr.bin/strip/Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/usr.bin/strip/Makefile b/usr.bin/strip/Makefile index 0dd7c9701bc..78cc445a0f1 100644 --- a/usr.bin/strip/Makefile +++ b/usr.bin/strip/Makefile @@ -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 <bsd.prog.mk> |