Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/mtree Don't run .BEGIN if we are cleaning or making obj.



details:   https://anonhg.NetBSD.org/src/rev/f296f509132c
branches:  trunk
changeset: 345795:f296f509132c
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jun 09 04:07:46 2016 +0000

description:
Don't run .BEGIN if we are cleaning or making obj.

diffstat:

 etc/mtree/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 24e38b867e06 -r f296f509132c etc/mtree/Makefile
--- a/etc/mtree/Makefile        Thu Jun 09 03:44:01 2016 +0000
+++ b/etc/mtree/Makefile        Thu Jun 09 04:07:46 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.33 2016/06/09 03:44:01 christos Exp $
+#      $NetBSD: Makefile,v 1.34 2016/06/09 04:07:46 christos Exp $
 
 .include <bsd.own.mk>
 
@@ -41,7 +41,9 @@
 # of the NetBSD.dist.tmp rule, but that needs to have no dependencies
 # so that it is re-run every time, yet it depends upon files existing.
 #
+.if !target(obj) && !target(clean) && !target(cleandir)
 .BEGIN: NetBSD.dist.base ${EXTRA_DIST_FILES} 
+.endif
 NetBSD.dist:   NetBSD.dist.tmp
        cmp -s NetBSD.dist.tmp NetBSD.dist || { \
                echo "Updating NetBSD.dist"; \



Home | Main Index | Thread Index | Old Index