bf37e4797334a538359695ac93f2e1acc23561cb
[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 WARNS=  1
9
10 CLEANFILES+=    maybe_stripped
11
12 all: maybe_stripped
13
14 maybe_stripped: strip
15         cp strip maybe_stripped
16 .if defined(STRIP)
17 .if ${STRIP:M-s} != ""
18         -strip maybe_stripped
19 .endif
20 .endif
21
22 strip221.1: ${SRCDIR}/binutils/doc/strip.1
23         cp ${.ALLSRC} ${.TARGET}
24
25 CLEANFILES+=    strip221.1
26
27 realinstall:
28         ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
29             maybe_stripped ${DESTDIR}${BINDIR}/strip
30
31 .include <bsd.prog.mk>