From 6cecaadf4fdcf51b793b00ec6cbdaaa2202ffef4 Mon Sep 17 00:00:00 2001 From: espie Date: Mon, 3 Jul 2017 00:17:52 +0000 Subject: [PATCH] be explicit in the lex/yacc dependencies reluctant okay deraadt@ --- usr.bin/bc/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/usr.bin/bc/Makefile b/usr.bin/bc/Makefile index 9d5391d0638..ffafca8125b 100644 --- a/usr.bin/bc/Makefile +++ b/usr.bin/bc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.8 2015/10/10 19:28:54 deraadt Exp $ +# $OpenBSD: Makefile,v 1.9 2017/07/03 00:17:52 espie Exp $ PROG= bc SRCS= bc.y scan.l tty.c dc.c bcode.c inout.c mem.c stack.c @@ -10,6 +10,12 @@ DPADD+= ${LIBEDIT} ${LIBCURSES} ${LIBCRYPTO} .PATH: ${.CURDIR}/../dc +bc.c y.tab.h: bc.y + ${YACC} -d ${.CURDIR}/bc.y + mv y.tab.c bc.c + +scan.o: y.tab.h + beforeinstall: install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/bc.library \ ${DESTDIR}/usr/share/misc -- 2.20.1