20264e89c4f5605e6355642d67ae15ad4b89963e
[dragonfly.git] / gnu / usr.bin / binutils222 / 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=    strip222.1
8 MLINKS+=strip222.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 strip222.1: ${SRCDIR}/binutils/doc/strip.1
24         cp ${.ALLSRC} ${.TARGET}
25
26 CLEANFILES+=    strip222.1
27
28 realinstall:
29         ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
30             maybe_stripped ${DESTDIR}${BINDIR}/strip
31
32 .include <bsd.prog.mk>