diff options
author | rillig <rillig@pkgsrc.org> | 2005-12-01 11:18:30 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-12-01 11:18:30 +0000 |
commit | 0f75425cfeb07d4c766d2913a3f4db263b500dec (patch) | |
tree | 958c19485b981a6a3fd05d65018a53c2ec373b60 /mk | |
parent | 86d2fdd58a0caed48003c4b11ba6549a8ab0f179 (diff) | |
download | pkgsrc-0f75425cfeb07d4c766d2913a3f4db263b500dec.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.
Diffstat (limited to 'mk')
-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 |