diff options
author | bde <bde@FreeBSD.org> | 1997-12-17 15:35:09 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-12-17 15:35:09 +0000 |
commit | bd59d1ae52dc2fea5a1accf92d2c75e2a572e5c6 (patch) | |
tree | 15bd54764c0ed136a594ca3b756f212a06f21b0f | |
parent | c097ee04f01e9e86f77dfa261a6f9f96bdb361ba (diff) | |
download | FreeBSD-src-bd59d1ae52dc2fea5a1accf92d2c75e2a572e5c6.zip FreeBSD-src-bd59d1ae52dc2fea5a1accf92d2c75e2a572e5c6.tar.gz |
Oops, rm -f can't handle empty lists.
-rw-r--r-- | share/mk/bsd.prog.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index baaf140..7998afd 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -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} |