Module Name:    src
Committed By:   matt
Date:           Fri Jun 17 21:19:42 UTC 2011

Modified Files:
        src/sys/conf: Makefile.kern.inc

Log Message:
If dbsym fails, not fail the command, remove the target too so that the
next invokation will try to remake it.


To generate a diff of this commit:
cvs rdiff -u -r1.138 -r1.139 src/sys/conf/Makefile.kern.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/conf/Makefile.kern.inc
diff -u src/sys/conf/Makefile.kern.inc:1.138 src/sys/conf/Makefile.kern.inc:1.139
--- src/sys/conf/Makefile.kern.inc:1.138	Mon May 30 03:12:43 2011
+++ src/sys/conf/Makefile.kern.inc	Fri Jun 17 21:19:42 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.kern.inc,v 1.138 2011/05/30 03:12:43 joerg Exp $
+#	$NetBSD: Makefile.kern.inc,v 1.139 2011/06/17 21:19:42 matt Exp $
 #
 # This file contains common `MI' targets and definitions and it is included
 # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -250,7 +250,7 @@
 SYSTEM_LD_TAIL+=; \
 	if grep '^\#define.*SYMTAB_SPACE' opt_ddbparam.h > /dev/null; then \
 		echo "${DBSYM} [email protected]"; \
-		${DBSYM} [email protected] || exit 1; \
+		${DBSYM} [email protected] || (rm -f $@ ; exit 1) || exit 1; \
 	fi
 
 .elifndef PROF
@@ -260,7 +260,7 @@
 SYSTEM_LD_TAIL+=; \
 	if grep '^\#define.*SYMTAB_SPACE' opt_ddbparam.h > /dev/null; then \
 		echo "${DBSYM} $@"; \
-		${DBSYM} $@ || exit 1; \
+		${DBSYM} $@ || (rm -f $@ ; exit 1) || exit 1; \
 	fi
 
 SYSTEM_LD_HEAD+=${SYSTEM_LD_HEAD_EXTRA}

Reply via email to