diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-06-26 08:41:00 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-06-26 08:41:00 +0000 |
commit | e909f4c71613f74ccd3632e3f15cc9db6414da35 (patch) | |
tree | 4e6477c58977eae5f8aaaca17d2177f7b18a7776 | |
parent | a2d19d28562ce2d776dfb6a6a27f777fa8865b73 (diff) | |
download | FreeBSD-src-e909f4c71613f74ccd3632e3f15cc9db6414da35.zip FreeBSD-src-e909f4c71613f74ccd3632e3f15cc9db6414da35.tar.gz |
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
-rw-r--r-- | share/mk/bsd.lib.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index a340982..1e1c9ce 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -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) |