Gack, don't try to build libgcc if it wouldn't be appropriate.

This commit is contained in:
thorpej 1998-05-21 01:40:19 +00:00
parent b05a04267a
commit ad6b563dc3

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.53 1998/05/12 01:59:54 thorpej Exp $
# $NetBSD: Makefile,v 1.54 1998/05/21 01:40:19 thorpej Exp $
.include <bsd.own.mk> # for configuration variables.
@ -66,13 +66,21 @@ build: beforeinstall
(cd ${.CURDIR}/lib/csu && ${MAKE} depend && ${MAKE} && ${MAKE} install)
(cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
(cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
.if (${MACHINE_ARCH} == "arm32") || \
(${MACHINE_ARCH} == "i386") || \
(${MACHINE_ARCH} == "mips") || \
(${MACHINE_ARCH} == "m68k") || \
(${MACHINE_ARCH} == "ns32k") || \
(${MACHINE_ARCH} == "sparc") || \
(${MACHINE_ARCH} == "vax")
.if defined(USE_EGCS)
(cd ${.CURDIR}/gnu/usr.bin/egcs/libgcc &&\
${MAKE} depend && ${MAKE} && ${MAKE} install)
.else
(cd ${.CURDIR}/gnu/usr.bin/gcc/libgcc &&\
${MAKE} depend && ${MAKE} && ${MAKE} install)
.endif
.endif # USE_EGCS
.endif # MACHINE_ARCH
(cd ${.CURDIR}/usr.bin/lex &&\
${MAKE} depend && ${MAKE} && ${MAKE} install)
(cd ${.CURDIR}/usr.bin/yacc && \