summaryrefslogtreecommitdiff
path: root/mk/checksum/bsd.checksum.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-07-13 18:42:45 +0000
committerjlam <jlam@pkgsrc.org>2006-07-13 18:42:45 +0000
commita29e44f51bc2e6516c95905a56a86b7ec4a145b9 (patch)
treefa1be8f39571aea5dc6303cca4bd9e01c94e8810 /mk/checksum/bsd.checksum.mk
parenta76b31a4d6fa2b1d0d8d77f0defa9d4f8604ece8 (diff)
downloadpkgsrc-a29e44f51bc2e6516c95905a56a86b7ec4a145b9.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/bsd.checksum.mk')
-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"