diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2008-03-24 16:39:14 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2008-03-24 16:39:14 +0000 |
commit | 378ab8314fdccb82083d2b67f20c23984295f9d4 (patch) | |
tree | e9ff7c3d887bc549f14f26de5b8c840af5253b23 /share/mk | |
parent | 0bdf18c9edb2e6a9fa89a28e89d11e7b6785b1fd (diff) |
check for emptiness of SRCS, since make warns otherwise.
okay deraadt@
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/bsd.dep.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk index 55cce19552b..6488a136a54 100644 --- a/share/mk/bsd.dep.mk +++ b/share/mk/bsd.dep.mk @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.dep.mk,v 1.7 2007/11/03 15:14:32 espie Exp $ +# $OpenBSD: bsd.dep.mk,v 1.8 2008/03/24 16:39:13 espie Exp $ # $NetBSD: bsd.dep.mk,v 1.12 1995/09/27 01:15:09 christos Exp $ # some of the rules involve .h sources, so remove them from mkdep line @@ -7,7 +7,7 @@ depend: beforedepend .depend subdirdepend afterdepend .ORDER: beforedepend .depend subdirdepend afterdepend subdirdepend: _SUBDIRUSE -. if defined(SRCS) +. if defined(SRCS) && !empty(SRCS) .depend: ${SRCS} ${_LEXINTM} ${_YACCINTM} @rm -f .depend @files="${.ALLSRC:M*.s} ${.ALLSRC:M*.S}"; \ |