diff options
author | rillig <rillig> | 2005-12-01 11:18:30 +0000 |
---|---|---|
committer | rillig <rillig> | 2005-12-01 11:18:30 +0000 |
commit | c2149efc92c79020c30a6cb8729004b2276ef5fe (patch) | |
tree | 958c19485b981a6a3fd05d65018a53c2ec373b60 | |
parent | 796b338982065608d470af68028e588917b7cca5 (diff) | |
download | pkgsrc-c2149efc92c79020c30a6cb8729004b2276ef5fe.tar.gz |
Don't create distinfo files in the "makesum" and "makepatchsum" targets
if NO_CHECKSUM is set to "yes". This allows to run "make makepatchsum"
in the top level pkgsrc directory without having to worry about lots of
additional distinfo files being created.
-rw-r--r-- | mk/bsd.pkg.mk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 09543b0ad66..e0a719719ea 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1771 2005/12/01 00:27:56 rillig Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1772 2005/12/01 11:18:30 rillig Exp $ # # This file is in the public domain. # @@ -3313,6 +3313,10 @@ fetch-list-one-pkg: .PHONY: makesum .if !target(makesum) +. if defined(NO_CHECKSUM) && !empty(NO_CHECKSUM:M[Yy][Ee][Ss]) +makesum: + @${DO_NADA} +. else makesum: fetch uptodate-digest ${_PKG_SILENT}${_PKG_DEBUG} \ newfile=${DISTINFO_FILE}.$$$$; \ @@ -3352,9 +3356,14 @@ makesum: fetch uptodate-digest else \ ${MV} $$newfile ${DISTINFO_FILE}; \ fi +. endif .endif .if !target(makepatchsum) +. if defined(NO_CHECKSUM) && !empty(NO_CHECKSUM:M[Yy][Ee][Ss]) +makepatchsum mps: + @${DO_NADA} +. else makepatchsum mps: uptodate-digest ${_PKG_SILENT}${_PKG_DEBUG} \ newfile=${DISTINFO_FILE}.$$$$; \ @@ -3380,6 +3389,7 @@ makepatchsum mps: uptodate-digest else \ ${MV} $$newfile ${DISTINFO_FILE}; \ fi +. endif .endif # This target is done by invoking a sub-make so that DISTINFO_FILE gets |