aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1995-07-24 22:50:17 +0000
committerBruce Evans <bde@FreeBSD.org>1995-07-24 22:50:17 +0000
commit3fbfb0f2813be9774f6c1a721ced07efc6e129cf (patch)
tree29e2884e6798745f12fe455f29555a74b62809a6 /usr.bin
parentdbd07ffcc0f3a1145b429181fdb029dd54ec04dc (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/strip/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/usr.bin/strip/Makefile b/usr.bin/strip/Makefile
index 1a699e72de4d2..e2ba84a45d0a8 100644
--- a/usr.bin/strip/Makefile
+++ b/usr.bin/strip/Makefile
@@ -2,9 +2,17 @@
PROG= strip
MAN1= strip.1
-STRIP=
-afterinstall:
- ./strip ${DESTDIR}${BINDIR}/strip
+all: maybe_stripped
+
+maybe_stripped: strip
+ cp -p strip maybe_stripped
+.if ${STRIP:M-s} != ""
+ ./strip maybe_stripped
+.endif
+
+install: maninstall
+ ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+ maybe_stripped ${DESTDIR}${BINDIR}/strip
.include <bsd.prog.mk>