pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Don't create distinfo files in the "makesum" and "m...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b46de18d3c9f
branches:  trunk
changeset: 503846:b46de18d3c9f
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Dec 01 11:18:30 2005 +0000

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

 mk/bsd.pkg.mk |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (43 lines):

diff -r 36c06487157a -r b46de18d3c9f mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Thu Dec 01 09:24:09 2005 +0000
+++ b/mk/bsd.pkg.mk     Thu Dec 01 11:18:30 2005 +0000
@@ -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 @@
 
 .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 @@
        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 @@
        else                                                            \
                ${MV} $$newfile ${DISTINFO_FILE};                       \
        fi
+.  endif
 .endif
 
 # This target is done by invoking a sub-make so that DISTINFO_FILE gets



Home | Main Index | Thread Index | Old Index