aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/mk/doc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bmake/mk/doc.mk')
-rw-r--r--contrib/bmake/mk/doc.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/bmake/mk/doc.mk b/contrib/bmake/mk/doc.mk
index b6ebd8ad3d3e..34202371fc5c 100644
--- a/contrib/bmake/mk/doc.mk
+++ b/contrib/bmake/mk/doc.mk
@@ -1,7 +1,10 @@
-# $Id: doc.mk,v 1.7 2019/06/09 16:22:08 sjg Exp $
+# $Id: doc.mk,v 1.9 2024/02/19 00:06:19 sjg Exp $
-.if !target(__${.PARSEFILE}__)
-__${.PARSEFILE}__:
+# should be set properly in sys.mk
+_this ?= ${.PARSEFILE:S,bsd.,,}
+
+.if !target(__${_this}__)
+__${_this}__: .NOTMAIN
.include <init.mk>