Revert "binutils 2.22: Promote to primary binutils"
[dragonfly.git] / gnu / usr.bin / binutils221 / strip / Makefile
1 .include "../Makefile.bu"
2
3 .PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc
4
5 PROG=   strip
6 SRCS=   objcopy.c is-strip.c
7 MAN=    strip221.1
8 MLINKS+=strip221.1 strip.1
9 WARNS=  1
10
11 CLEANFILES+=    maybe_stripped
12
13 all: maybe_stripped
14
15 maybe_stripped: strip
16         cp strip maybe_stripped
17 .if defined(STRIP)
18 .if ${STRIP:M-s} != ""
19         -strip maybe_stripped
20 .endif
21 .endif
22
23 strip221.1: ${SRCDIR}/binutils/doc/strip.1
24         cp ${.ALLSRC} ${.TARGET}
25
26 CLEANFILES+=    strip221.1
27
28 realinstall:
29         ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
30             maybe_stripped ${DESTDIR}${BINDIR}/strip
31
32 .include <bsd.prog.mk>