use cp instead of mv to get the right name of the yacc-generated

files, mv fails badly with parallel makes

Submitted by:	Vincent Poy <vince@oahu.WURLDLINK.NET>
This commit is contained in:
Assar Westerlund 2001-11-06 04:30:15 +00:00
parent f61769f009
commit 0a2bc5cab2
2 changed files with 8 additions and 7 deletions

View File

@ -109,8 +109,8 @@ parse.o: parse.c roken.h
parse.h parse.c: parse.y
${YACC} -d ${.OODATE}
mv y.tab.c parse.c
mv y.tab.h parse.h
cp y.tab.c parse.c
cp y.tab.h parse.h
lex.o: lex.l parse.h roken.h
@ -124,4 +124,5 @@ make-print-version: make-print-version.c
${CC} ${CFLAGS} -static -o ${.TARGET} ${.OODATE}
CLEANFILES+= ${GEN} asn1_compile lex.o parse.o parse.c parse.h \
hdb_asn1.h make-print-version print_version.h print_version.o
hdb_asn1.h make-print-version print_version.h print_version.o \
y.tab.c y.tab.h

View File

@ -63,8 +63,8 @@ parse.o: parse.c
parse.h parse.c: parse.y
${YACC} -d ${.OODATE}
mv y.tab.c parse.c
mv y.tab.h parse.h
cp y.tab.c parse.c
cp y.tab.h parse.h
lex.o: lex.l
@ -78,5 +78,5 @@ make-print-version: make-print-version.c
${CC} ${CFLAGS} -static -o ${.TARGET} ${.OODATE}
CLEANFILES+= ${GEN} asn1_compile lex.o parse.o parse.c parse.h \
hdb_asn1.h make-print-version print_version.h print_version.o
hdb_asn1.h make-print-version print_version.h print_version.o \
y.tab.c y.tab.h