summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authormckay <mckay@FreeBSD.org>1997-09-28 16:25:28 +0000
committermckay <mckay@FreeBSD.org>1997-09-28 16:25:28 +0000
commit878b67c48bb8f4add3f007bbf58f6c75cc52c657 (patch)
tree2600daac98985cf3d34607a137b2a8b76d353b55 /Makefile
parent2ff71b2b2174c8381b220f009215775dc016889f (diff)
downloadFreeBSD-src-878b67c48bb8f4add3f007bbf58f6c75cc52c657.zip
FreeBSD-src-878b67c48bb8f4add3f007bbf58f6c75cc52c657.tar.gz
When bootstrapping lex, the object directory for lex/lib would be deleted
without being recreated. A read-only source compile would then fail shortly afterwards trying to write .depend into the source tree.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c8186ad..6896df8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
#
-# $Id$
+# $Id: Makefile,v 1.147 1997/09/28 09:26:05 markm Exp $
#
# Make command line options:
# -DCLOBBER will remove /usr/include
@@ -427,7 +427,10 @@ bootstrap:
cd ${.CURDIR}/usr.bin/xinstall && ${MAKE} depend && \
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
cd ${.CURDIR}/usr.bin/lex && ${MAKE} bootstrap && ${MAKE} depend && \
- ${MAKE} ${MK_FLAGS} -DNOLIB all install ${CLEANDIR} ${OBJDIR}
+ ${MAKE} ${MK_FLAGS} -DNOLIB all install ${CLEANDIR}
+.if !defined(NOOBJDIR)
+ cd ${.CURDIR}/usr.bin/lex && ${MAKE} obj
+.endif
#
# include-tools - generally the same as 'bootstrap', except that it's for
OpenPOWER on IntegriCloud