From 45bdc4c8cc30460794271c8466b85c8f195096e1 Mon Sep 17 00:00:00 2001 From: obrien Date: Thu, 4 Apr 2002 00:26:20 +0000 Subject: Clean up the YACCing. I don't know why we cannot leave the .y's as .y's. So lets see if doing so causes anyone trouble. Also use make(1)'s assistance in using the right file. It knows the dependency, so lets just ask it. --- gnu/usr.bin/cc/cc1/Makefile | 6 ++---- gnu/usr.bin/cc/cc1obj/Makefile | 6 ++---- gnu/usr.bin/cc/cc1plus/Makefile | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) (limited to 'gnu/usr.bin') diff --git a/gnu/usr.bin/cc/cc1/Makefile b/gnu/usr.bin/cc/cc1/Makefile index 573fc52..22ca864 100644 --- a/gnu/usr.bin/cc/cc1/Makefile +++ b/gnu/usr.bin/cc/cc1/Makefile @@ -23,12 +23,10 @@ LDADD+= ${LIBCC_INT} c-parse.c c-parse.h: c-parse.in sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \ -e "/^ifc$$/d" -e "/^end ifc$$/d" \ - ${GCCDIR}/c-parse.in > c-parse.y + ${.ALLSRC} > c-parse.y ${YACC} -d -o c-parse.c c-parse.y - mv c-parse.y c-parse.y.out -CLEANFILES+= c-parse.c c-parse.h \ - c-parse.y c-parse.y.out # insurance +CLEANFILES+= c-parse.c c-parse.h c-parse.y # insurance #----------------------------------------------------------------------- diff --git a/gnu/usr.bin/cc/cc1obj/Makefile b/gnu/usr.bin/cc/cc1obj/Makefile index 876d089..7bf9545 100644 --- a/gnu/usr.bin/cc/cc1obj/Makefile +++ b/gnu/usr.bin/cc/cc1obj/Makefile @@ -23,13 +23,11 @@ LDADD+= ${LIBCC_INT} objc-parse.c c-parse.h: c-parse.in sed -e "/^ifc$$/,/^end ifc$$/d" \ -e "/^ifobjc$$/d" -e "/^end ifobjc$$/d" \ - ${GCCDIR}/c-parse.in > objc-parse.y + ${.ALLSRC} > objc-parse.y ${YACC} -d -o objc-parse.c objc-parse.y mv objc-parse.h c-parse.h - mv objc-parse.y objc-parse.y.out -CLEANFILES+= objc-parse.c c-parse.h \ - objc-parse.y objc-parse.y.out # insurance +CLEANFILES+= objc-parse.c c-parse.h objc-parse.y # insurance #----------------------------------------------------------------------- diff --git a/gnu/usr.bin/cc/cc1plus/Makefile b/gnu/usr.bin/cc/cc1plus/Makefile index b157b82..7b95f4d 100644 --- a/gnu/usr.bin/cc/cc1plus/Makefile +++ b/gnu/usr.bin/cc/cc1plus/Makefile @@ -20,7 +20,7 @@ LDADD+= ${LIBCC_INT} .ORDER: parse.c parse.h parse.c parse.h: parse.y - ${YACC} -d -o parse.c ${GCCDIR}/cp/parse.y + ${YACC} -d -o parse.c ${.ALLSRC} grep '^#define[ ]*YYEMPTY' parse.c >>parse.h CLEANFILES+= parse.c parse.h -- cgit v1.1