Module Name:    src
Committed By:   christos
Date:           Sun Dec 10 15:11:47 UTC 2017

Modified Files:
        src/share/mk: bsd.prog.mk

Log Message:
don't try to build .debug files for shell scripts.


To generate a diff of this commit:
cvs rdiff -u -r1.308 -r1.309 src/share/mk/bsd.prog.mk

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

Modified files:

Index: src/share/mk/bsd.prog.mk
diff -u src/share/mk/bsd.prog.mk:1.308 src/share/mk/bsd.prog.mk:1.309
--- src/share/mk/bsd.prog.mk:1.308	Tue Oct 10 15:29:44 2017
+++ src/share/mk/bsd.prog.mk	Sun Dec 10 10:11:47 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.prog.mk,v 1.308 2017/10/10 19:29:44 christos Exp $
+#	$NetBSD: bsd.prog.mk,v 1.309 2017/12/10 15:11:47 christos Exp $
 #	@(#)bsd.prog.mk	8.2 (Berkeley) 4/2/94
 
 .ifndef HOSTPROG
@@ -431,7 +431,8 @@ _CCLINK.${_P}=	${CXX} ${_CCLINKFLAGS}
 BINDIR.${_P}?=		${BINDIR}
 PROGNAME.${_P}?=	${_P}
 
-.if ${MKDEBUG:Uno} != "no" && !defined(NODEBUG) && !commands(${_P})
+.if ${MKDEBUG:Uno} != "no" && !defined(NODEBUG) && !commands(${_P}) && \
+    !empty(OBJS.${_P})
 _PROGDEBUG.${_P}:=	${PROGNAME.${_P}}.debug
 .endif
 

Reply via email to