summaryrefslogtreecommitdiff
path: root/share/mk/bsd.sys.mk
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2017-07-09 14:04:51 +0000
committerMarc Espie <espie@cvs.openbsd.org>2017-07-09 14:04:51 +0000
commit421cb020929e64fed3bba5a319c8a215954c3b07 (patch)
treee36fff7737195bfd599a330a378d921854052034 /share/mk/bsd.sys.mk
parent7ff9a1f4db462bd71365b5e27e8f23b55ec69bba (diff)
have bsd.prog.mk/bsd.lib.mk generate .y -> .c/.h rules without intermediate
files. This fixes up parallel builds in the default case. FreeBSD does something similar. okay millert@
Diffstat (limited to 'share/mk/bsd.sys.mk')
-rw-r--r--share/mk/bsd.sys.mk17
1 files changed, 2 insertions, 15 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index c6be303b5a5..62647237d2b 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.sys.mk,v 1.12 2017/07/05 13:31:40 espie Exp $
+# $OpenBSD: bsd.sys.mk,v 1.13 2017/07/09 14:04:50 espie Exp $
# $NetBSD: bsd.sys.mk,v 1.2 1995/12/13 01:25:07 cgd Exp $
#
# Overrides used for OpenBSD source tree builds.
@@ -10,18 +10,5 @@ CPPFLAGS+= -nostdinc -idirafter ${DESTDIR}/usr/include
CXXFLAGS+= -idirafter ${DESTDIR}/usr/include/g++
.endif
-.if defined(PARALLEL)
-# Yacc
-.y:
- ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
- ${LINK.c} -o ${.TARGET} ${.TARGET:R}.tab.c ${LDLIBS}
- rm -f ${.TARGET:R}.tab.c
.y.c:
- ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
- mv ${.TARGET:R}.tab.c ${.TARGET}
-.y.o:
- ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
- ${COMPILE.c} -o ${.TARGET} ${.TARGET:R}.tab.c
- rm -f ${.TARGET:R}.tab.c
- if test -f ${.TARGET:R}.d; then sed -i -e 's,${.TARGET:R}.tab.c,${.IMPSRC},' ${.TARGET:R}.d; fi
-.endif
+ ${YACC.y} -o ${.TARGET} ${.IMPSRC}