summaryrefslogtreecommitdiff
path: root/mk/checksum
diff options
context:
space:
mode:
authorjlam <jlam>2006-07-13 18:42:45 +0000
committerjlam <jlam>2006-07-13 18:42:45 +0000
commitbec997af887b9b28f214165fea949a10a3ed4532 (patch)
treefa1be8f39571aea5dc6303cca4bd9e01c94e8810 /mk/checksum
parentbaf6b354ca63da511224d6d2e18baba32fedad07 (diff)
downloadpkgsrc-bec997af887b9b28f214165fea949a10a3ed4532.tar.gz
Check whether the "checksum" target is defined beforehand to prevent
"duplicate script" collisions with the one defined by bsd.pkg.mk if PKG_*_REASON is set.
Diffstat (limited to 'mk/checksum')
-rw-r--r--mk/checksum/bsd.checksum.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/mk/checksum/bsd.checksum.mk b/mk/checksum/bsd.checksum.mk
index d44a74a01f4..cb39aad185d 100644
--- a/mk/checksum/bsd.checksum.mk
+++ b/mk/checksum/bsd.checksum.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.checksum.mk,v 1.1 2006/07/13 14:02:34 jlam Exp $
+# $NetBSD: bsd.checksum.mk,v 1.2 2006/07/13 18:42:45 jlam Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and defines the
# relevant variables and targets for the "checksum" phase.
@@ -22,7 +22,11 @@
###
.if defined(NO_CHECKSUM)
.PHONY: checksum makesum makepatchsum
-checksum makesum makepatchsum:
+. if !target(checksum)
+checksum:
+ @${DO_NADA}
+. endif
+makesum makepatchsum:
@${DO_NADA}
.else
. include "${PKGSRCDIR}/mk/checksum/checksum.mk"