pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/checksum Check whether the "checksum" target is def...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7c93d8dc98ce
branches:  trunk
changeset: 516080:7c93d8dc98ce
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Jul 13 18:42:45 2006 +0000

description:
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:

 mk/checksum/bsd.checksum.mk |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r dc5ac3170d29 -r 7c93d8dc98ce mk/checksum/bsd.checksum.mk
--- a/mk/checksum/bsd.checksum.mk       Thu Jul 13 18:40:33 2006 +0000
+++ b/mk/checksum/bsd.checksum.mk       Thu Jul 13 18:42:45 2006 +0000
@@ -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"



Home | Main Index | Thread Index | Old Index