blob: 3cba7c051c99b66eb57841e53b97b331cb024cfb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# $OpenBSD: Makefile,v 1.6 1997/04/27 20:56:54 millert Exp $
PROG= strip
.if ${HOSTCC} != ${CC}
STRIP=./hoststrip
realinstall: hoststrip
hoststrip: strip.c
${HOSTCC} ${.CURDIR}/strip.c -o hoststrip
.else
STRIP=./strip
.endif
realinstall:
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 600 strip \
${DESTDIR}${BINDIR}
${STRIP} ${DESTDIR}${BINDIR}/strip
chmod ${BINMODE} ${DESTDIR}${BINDIR}/strip
-if [ "${INSTALL_COPY}" = "" ]; then rm -f ${STRIP}; fi
.include <bsd.prog.mk>
|