If CLEANFILES is nil or not defined, do not try to remove it. This happens

when SRCS is entirely files which produce only one compiled form, and when
NOMAN is defined.  This does not seem to happen in STABLE.

Approved by:	ru
This commit is contained in:
Juli Mallett 2002-06-26 08:41:00 +00:00
parent baefb2ee4e
commit dd247f7371

View File

@ -232,7 +232,9 @@ all: _manpages
.if !target(clean)
clean:
.if defined(CLEANFILES) && !empty(CLEANFILES)
rm -f ${CLEANFILES}
.endif
.if defined(LIB) && !empty(LIB)
rm -f a.out ${OBJS} ${OBJS:S/$/.tmp/} ${STATICOBJS}
.if !defined(INTERNALLIB)