diff options
author | helbig <helbig@FreeBSD.org> | 1998-02-07 17:19:06 +0000 |
---|---|---|
committer | helbig <helbig@FreeBSD.org> | 1998-02-07 17:19:06 +0000 |
commit | 9a8103d327fe33b6210c412e5981b9792527a971 (patch) | |
tree | 2ccef4de2e53a7eb8edbc9db43fc4ab83035b886 /share/mk/bsd.prog.mk | |
parent | 95aa7532e228080d1107a19959d4fd04cf839a47 (diff) | |
download | FreeBSD-src-9a8103d327fe33b6210c412e5981b9792527a971.zip FreeBSD-src-9a8103d327fe33b6210c412e5981b9792527a971.tar.gz |
Postpone the test for non-emptiness of $PROG, $OBJS and $CLEANFILES
to ``shell time''. The previous version didn't work in
/usr/src7share/man/man4.
Reviewed by: bde
Diffstat (limited to 'share/mk/bsd.prog.mk')
-rw-r--r-- | share/mk/bsd.prog.mk | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index d690213..55fb179 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.58 1997/12/17 15:35:09 bde Exp $ +# $Id: bsd.prog.mk,v 1.59 1997/12/18 12:56:52 bde Exp $ .if exists(${.CURDIR}/../Makefile.inc) .include "${.CURDIR}/../Makefile.inc" @@ -60,10 +60,9 @@ 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 + if [ -n "${PROG}" -o -n "${OBJS}" -o -n "${CLEANFILES}" ] ; then \ + rm -f ${PROG} ${OBJS} ${CLEANFILES} ; \ + fi .if defined(CLEANDIRS) && !empty(CLEANDIRS) rm -rf ${CLEANDIRS} .endif |