summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2017-07-10 21:30:38 +0000
committerMarc Espie <espie@cvs.openbsd.org>2017-07-10 21:30:38 +0000
commit433b9801a13f7ac0c037774a9dd8955c42ea88dc (patch)
tree797e7db1db0ede7ed555d794dbb73ebf13693a30 /usr.bin
parent8776829ca3b5bc98f5ee9ae331aa2d67c120b5f6 (diff)
remove misc. depend and yacc nits that no longer matter.
okay millert@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/awk/Makefile6
-rw-r--r--usr.bin/mklocale/Makefile8
2 files changed, 3 insertions, 11 deletions
diff --git a/usr.bin/awk/Makefile b/usr.bin/awk/Makefile
index 8f2cc66a976..352d521f799 100644
--- a/usr.bin/awk/Makefile
+++ b/usr.bin/awk/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.15 2017/06/16 10:25:54 espie Exp $
+# $OpenBSD: Makefile,v 1.16 2017/07/10 21:30:37 espie Exp $
PROG= awk
SRCS= ytab.c lex.c b.c main.c parse.c proctab.c tran.c lib.c run.c
@@ -9,9 +9,7 @@ CFLAGS+=-I. -I${.CURDIR} -DHAS_ISBLANK -DNDEBUG
HOSTCFLAGS+=-I. -I${.CURDIR} -DHAS_ISBLANK -DNDEBUG
ytab.c ytab.h: awkgram.y
- ${YACC} -d ${.CURDIR}/awkgram.y
- mv y.tab.c ytab.c
- mv y.tab.h ytab.h
+ ${YACC} -o ytab.c -d ${.CURDIR}/awkgram.y
BUILDFIRST = ytab.h
diff --git a/usr.bin/mklocale/Makefile b/usr.bin/mklocale/Makefile
index 78d6df5d83f..301bd6a25af 100644
--- a/usr.bin/mklocale/Makefile
+++ b/usr.bin/mklocale/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.3 2017/07/03 15:17:11 espie Exp $
+# $OpenBSD: Makefile,v 1.4 2017/07/10 21:30:37 espie Exp $
# $NetBSD: Makefile,v 1.11 2003/08/01 17:04:04 lukem Exp $
.include <bsd.own.mk>
@@ -8,10 +8,4 @@ SRCS= yacc.y lex.l
CPPFLAGS+= -I. -I${.CURDIR} -I${.CURDIR}/../../lib/libc -I${.CURDIR}/../../lib/libc/include
YHEADER= 1
-yacc.c yacc.h: yacc.y
- ${YACC} -d ${.ALLSRC} && mv y.tab.c yacc.c && mv y.tab.h yacc.h
-
-lex.o: yacc.h
-
-CLEANFILES+= yacc.c yacc.h
.include <bsd.prog.mk>