head	1.16;
access;
symbols
	RELENG_4_11_0_RELEASE:1.10.6.3
	RELENG_4_11:1.10.6.3.0.10
	RELENG_4_11_BP:1.10.6.3
	RELENG_4_10_0_RELEASE:1.10.6.3
	RELENG_4_10:1.10.6.3.0.8
	RELENG_4_10_BP:1.10.6.3
	RELENG_4_9_0_RELEASE:1.10.6.3
	RELENG_4_9:1.10.6.3.0.6
	RELENG_4_9_BP:1.10.6.3
	RELENG_5_1_0_RELEASE:1.15
	RELENG_5_1:1.15.0.4
	RELENG_5_1_BP:1.15
	RELENG_4_8_0_RELEASE:1.10.6.3
	RELENG_4_8:1.10.6.3.0.4
	RELENG_4_8_BP:1.10.6.3
	RELENG_5_0_0_RELEASE:1.15
	RELENG_5_0:1.15.0.2
	RELENG_5_0_BP:1.15
	RELENG_4_7_0_RELEASE:1.10.6.3
	RELENG_4_7:1.10.6.3.0.2
	RELENG_4_7_BP:1.10.6.3
	RELENG_4_6_2_RELEASE:1.10.6.1
	RELENG_4_6_1_RELEASE:1.10.6.1
	RELENG_4_6_0_RELEASE:1.10.6.1
	RELENG_4_6:1.10.6.1.0.6
	RELENG_4_6_BP:1.10.6.1
	RELENG_4_5_0_RELEASE:1.10.6.1
	RELENG_4_5:1.10.6.1.0.4
	RELENG_4_5_BP:1.10.6.1
	RELENG_4_4_0_RELEASE:1.10.6.1
	RELENG_4_4:1.10.6.1.0.2
	RELENG_4_4_BP:1.10.6.1
	RELENG_4_3_0_RELEASE:1.10
	RELENG_4_3:1.10.0.8
	RELENG_4_3_BP:1.10
	RELENG_4_2_0_RELEASE:1.10
	RELENG_4_1_1_RELEASE:1.10
	PRE_SMPNG:1.10
	RELENG_4_1_0_RELEASE:1.10
	RELENG_3_5_0_RELEASE:1.10
	RELENG_4_0_0_RELEASE:1.10
	RELENG_4:1.10.0.6
	RELENG_4_BP:1.10
	RELENG_3_4_0_RELEASE:1.10
	RELENG_3_3_0_RELEASE:1.10
	RELENG_3_2_PAO:1.10.0.4
	RELENG_3_2_PAO_BP:1.10
	RELENG_3_2_0_RELEASE:1.10
	RELENG_3_1_0_RELEASE:1.10
	RELENG_3:1.10.0.2
	RELENG_3_BP:1.10
	RELENG_2_2_8_RELEASE:1.7
	RELENG_3_0_0_RELEASE:1.10
	RELENG_2_2_7_RELEASE:1.7
	RELENG_2_2_6_RELEASE:1.7
	RELENG_2_2_5_RELEASE:1.7
	bsd_44_lite_2:1.1.1.1
	RELENG_2_2_2_RELEASE:1.7
	RELENG_2_2_1_RELEASE:1.7
	RELENG_2_2_0_RELEASE:1.7
	RELENG_2_1_7_RELEASE:1.4.6.2
	RELENG_2_1_6_1_RELEASE:1.4.6.2
	RELENG_2_1_6_RELEASE:1.4.6.2
	RELENG_2_2:1.7.0.2
	RELENG_2_2_BP:1.7
	RELENG_2_1_5_RELEASE:1.4.6.2
	RELENG_2_1_0_RELEASE:1.4.6.1
	RELENG_2_1_0:1.4.0.6
	RELENG_2_1_0_BP:1.4
	RELENG_2_0_5_RELEASE:1.4
	RELENG_2_0_5:1.4.0.4
	RELENG_2_0_5_BP:1.4
	RELENG_2_0_5_ALPHA:1.4
	RELEASE_2_0:1.4
	BETA_2_0:1.4
	ALPHA_2_0:1.4.0.2
	bsd_44_lite:1.1.1.1
	CSRG:1.1.1;
locks; strict;
comment	@# @;


1.16
date	2003.06.27.03.59.46;	author obrien;	state dead;
branches;
next	1.15;

1.15
date	2002.07.29.09.40.16;	author ru;	state Exp;
branches;
next	1.14;

1.14
date	2002.04.29.10.28.11;	author ru;	state Exp;
branches;
next	1.13;

1.13
date	2001.12.12.23.29.13;	author markm;	state Exp;
branches;
next	1.12;

1.12
date	2001.12.03.21.28.37;	author dwmalone;	state Exp;
branches;
next	1.11;

1.11
date	2001.03.27.10.52.15;	author ru;	state Exp;
branches;
next	1.10;

1.10
date	98.09.07.06.01.37;	author jb;	state Exp;
branches
	1.10.6.1;
next	1.9;

1.9
date	98.06.12.16.22.25;	author peter;	state Exp;
branches;
next	1.8;

1.8
date	98.05.25.17.34.42;	author sos;	state Exp;
branches;
next	1.7;

1.7
date	96.06.27.21.48.50;	author nate;	state Exp;
branches;
next	1.6;

1.6
date	95.08.01.21.53.35;	author ats;	state Exp;
branches;
next	1.5;

1.5
date	95.07.24.22.50.17;	author bde;	state Exp;
branches;
next	1.4;

1.4
date	94.09.29.21.18.17;	author swallace;	state Exp;
branches
	1.4.6.1;
next	1.3;

1.3
date	94.08.20.05.51.48;	author bde;	state Exp;
branches;
next	1.2;

1.2
date	94.05.30.14.17.18;	author rgrimes;	state Exp;
branches;
next	1.1;

1.1
date	94.05.27.12.32.41;	author rgrimes;	state Exp;
branches
	1.1.1.1;
next	;

1.10.6.1
date	2001.04.25.11.29.41;	author ru;	state Exp;
branches;
next	1.10.6.2;

1.10.6.2
date	2002.07.16.14.25.26;	author ru;	state Exp;
branches;
next	1.10.6.3;

1.10.6.3
date	2002.08.07.16.32.01;	author ru;	state Exp;
branches;
next	1.10.6.4;

1.10.6.4
date	2012.11.17.07.27.49;	author svnexp;	state Exp;
branches;
next	;

1.4.6.1
date	95.08.30.10.36.34;	author davidg;	state Exp;
branches;
next	1.4.6.2;

1.4.6.2
date	96.06.27.21.47.58;	author nate;	state Exp;
branches;
next	;

1.1.1.1
date	94.05.27.12.32.42;	author rgrimes;	state Exp;
branches;
next	;


desc
@@


1.16
log
@Finish the deorbital burn of the i386-only a.out toolchain.
@
text
@#	@@(#)Makefile	8.1 (Berkeley) 6/6/93
# $FreeBSD: src/usr.bin/strip/Makefile,v 1.15 2002/07/29 09:40:16 ru Exp $

PROG=	strip
MAN=	strip.1aout
BINDIR= /usr/libexec/aout
CLEANFILES += maybe_stripped

all: maybe_stripped

maybe_stripped: strip
	cp -p strip maybe_stripped
.if defined(STRIP)
.if ${STRIP:M-s} != ""
	-strip maybe_stripped
.endif
.endif

realinstall:
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
	    maybe_stripped ${DESTDIR}${BINDIR}/strip

.include <bsd.prog.mk>
@


1.15
log
@Drop support for COPY, -c has been the default mode of install(1)
for a long time now.

Approved by:	bde
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.14
log
@Do not override the `install' target.
@
text
@d20 1
a20 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
@


1.13
log
@Remove to-be-default WARNS?=2
@
text
@d19 1
a19 1
install: maninstall
@


1.12
log
@Strip seems to be warns clean on i386 and alpha.
@
text
@a5 1
WARNS?=	2
@


1.11
log
@MAN[1-9] -> MAN.
@
text
@d6 1
@


1.10
log
@Install the legacy man file in section 1aout.
@
text
@d2 1
d5 1
a6 1
MAN1aout=strip.1aout
@


1.10.6.1
log
@MFC: MAN[1-9] -> MAN.
@
text
@a1 1
# $FreeBSD$
a3 1
MAN=	strip.1aout
d5 1
@


1.10.6.2
log
@MFC: 1.14 (Do not override the `install' target.)
@
text
@d19 1
a19 1
realinstall:
@


1.10.6.3
log
@MFC: Drop support for COPY.
@
text
@d20 1
a20 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
@


1.10.6.4
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/4/usr.bin/strip/Makefile 101469 2002-08-07 16:32:02Z ru $
@


1.9
log
@"./strip maybe_stripped" doesn't work too well if maybe_stripped is an
elf executable..
@
text
@d5 1
a5 1
MAN1=	strip.1
@


1.8
log
@ELF preparation step 1:

Move our old a.out utils to /usr/libexec/aout.
Enable binutils and put the utils in /usr/libexec/elf
Enable objformat, a little helper program that calls the right
utils based on /etc/objformat and $OBJFORMAT.

This will enable the ELF generating tools.
Remember that this is only step one, the system is still compiled
and run in a.out format ONLY.

Problem left to solve: The BSD manpages wins over the GNU equivalents
as the are installed last. We need to distinguish between the manpages
somehow...
@
text
@d14 1
a14 1
	./strip maybe_stripped
@


1.7
log
@Trivial bugfix which occurs when DEBUG_FLAGS is defined.  If DEBUG_FLAGS
is defined, STRIP is undefined and causes the Makefile to blow up, so
make sure STRIP is defined if you plan on using it.
@
text
@d4 1
@


1.6
log
@Add the maybe_stripped to a CLEANFILES target to get a clean obj directory
after a clean or cleandir.
@
text
@d11 1
d14 1
@


1.5
log
@Build a stripped copy of `strip' so that it doesn't have to be stripped
at install time.  This will allow `install -C' to avoid replacing the
installed copy if the new copy is the same.  `install -C' would actually
work right if `strip' is already installed, but the Makefile doesn't
know that and has to work for plain `install'.

Stripping should be done by default at link time, but complications
would still be required for installing `strip' in case the default is
overridden.
@
text
@d5 1
@


1.4
log
@Define MAN1 man page variable.
Get rid of install: and instead add an afterinstall: so that man page
is properly installed
@
text
@a4 1
STRIP=
d6 11
a16 2
afterinstall:
	./strip ${DESTDIR}${BINDIR}/strip
@


1.4.6.1
log
@Brought in changes from main branch: build strip striped to avoid circular
dependency; add "maybe_stripped" to CLEANFILES.
@
text
@d5 1
a5 1
CLEANFILES += maybe_stripped
d7 2
a8 11
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
@


1.4.6.2
log
@Trivial bugfix which occurs when DEBUG_FLAGS is defined.  If DEBUG_FLAGS
is defined, STRIP is undefined and causes the Makefile to blow up, so
make sure STRIP is defined if you plan on using it.
@
text
@a10 1
.if defined(STRIP)
a12 1
.endif
@


1.3
log
@Install with group BINGRP, not BINOWN.
@
text
@d4 2
d7 1
a7 3
install:
	install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} strip \
	    ${DESTDIR}${BINDIR}
@


1.2
log
@Cleanup so that make install can run, many install: maninstall changed
to just install:, sperious targets and CLEANFILES removed.
@
text
@d6 1
a6 1
	install -c -o ${BINOWN} -g ${BINOWN} -m ${BINMODE} strip \
@


1.1
log
@Initial revision
@
text
@d5 1
a5 1
install: maninstall
a8 1
	rm -f ./strip
@


1.1.1.1
log
@BSD 4.4 Lite Usr.bin Sources
@
text
@@
