From: Sascha Wildner Date: Fri, 22 Jul 2011 16:19:25 +0000 (+0200) Subject: gdb(1): Fix the dreaded "xml-builtin.c already exists" quickworld error. X-Git-Tag: v2.12.0~297 X-Git-Url: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/d0b8e0d3f12424b7861ec67ead478a57f5bb4d8e gdb(1): Fix the dreaded "xml-builtin.c already exists" quickworld error. The feature-to-c.sh script has a check that outputs this error if the file exists but would have to be regenerated (as can be the case when quickworlding). Because fixing it in the script would take more lines than fixing it in the Makefile, I do the latter (the effect is the same). --- diff --git a/gnu/usr.bin/gdb/libgdb/Makefile b/gnu/usr.bin/gdb/libgdb/Makefile index 5b83da0..0011488 100644 --- a/gnu/usr.bin/gdb/libgdb/Makefile +++ b/gnu/usr.bin/gdb/libgdb/Makefile @@ -178,6 +178,7 @@ init.c: ${SRCS:Ninit.c} Makefile CLEANFILES+= init.c xml-builtin.c: feature_to_c.sh ${XMLFILES} + rm -f ${.TARGET} sh ${CONTRIBDIR}/features/feature_to_c.sh ${.TARGET} ${.ALLSRC:M*.dtd} CLEANFILES+= xml-builtin.c