mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Oops, rm -f can't handle empty lists.
This commit is contained in:
parent
d76c045abb
commit
f0adc726c5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31815
@ -1,5 +1,5 @@
|
||||
# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
|
||||
# $Id: bsd.prog.mk,v 1.56 1997/09/05 09:09:56 peter Exp $
|
||||
# $Id: bsd.prog.mk,v 1.57 1997/12/17 13:40:00 bde Exp $
|
||||
|
||||
.if exists(${.CURDIR}/../Makefile.inc)
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
@ -60,6 +60,10 @@ all: objwarn ${PROG} all-man _SUBDIR
|
||||
|
||||
.if !target(clean)
|
||||
clean: _SUBDIR
|
||||
.if defined(PROG) && !empty(PROG) || defined(OBJS) && !empty(OBJS) || \
|
||||
defined(CLEANFILES) && !empty(CLEANFILES)
|
||||
rm -f ${PROG} ${OBJS} ${CLEANFILES}
|
||||
.endif
|
||||
rm -f ${PROG} ${OBJS} ${CLEANFILES}
|
||||
.if defined(CLEANDIRS) && !empty(CLEANDIRS)
|
||||
rm -rf ${CLEANDIRS}
|
||||
|
Loading…
Reference in New Issue
Block a user