summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-04-04 00:26:20 +0000
committerobrien <obrien@FreeBSD.org>2002-04-04 00:26:20 +0000
commit45bdc4c8cc30460794271c8466b85c8f195096e1 (patch)
tree77a690fa4107f4a64a65e86078cc4b07c43443e4 /gnu/usr.bin
parentd481c3c6fdaa0def53579d62894ad1c40d8c9f68 (diff)
downloadFreeBSD-src-45bdc4c8cc30460794271c8466b85c8f195096e1.zip
FreeBSD-src-45bdc4c8cc30460794271c8466b85c8f195096e1.tar.gz
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.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/cc/cc1/Makefile6
-rw-r--r--gnu/usr.bin/cc/cc1obj/Makefile6
-rw-r--r--gnu/usr.bin/cc/cc1plus/Makefile2
3 files changed, 5 insertions, 9 deletions
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
OpenPOWER on IntegriCloud