summaryrefslogtreecommitdiffstats
path: root/bin/expr
diff options
context:
space:
mode:
Diffstat (limited to 'bin/expr')
-rw-r--r--bin/expr/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/expr/Makefile b/bin/expr/Makefile
index 1c98f36..e360adf 100644
--- a/bin/expr/Makefile
+++ b/bin/expr/Makefile
@@ -2,8 +2,12 @@
# $Id: Makefile,v 1.8 1996/05/07 23:14:17 wosch Exp $
PROG= expr
-SRCS= expr.y
-CLEANFILES+= expr.c expr.tab.h
+SRCS= expr.c
+CLEANFILES+= expr.c y.tab.h
+
+expr.c:
+ ${YACC} -d ${.IMPSRC}
+ mv -f y.tab.c expr.c
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud