update Mon Mar 15 12:37:00 PDT 2010
[pkgsrc.git] / mk / checksum / bsd.checksum.mk
1 # $NetBSD: bsd.checksum.mk,v 1.10 2009/07/15 09:40:30 joerg Exp $
2 #
3 # This Makefile fragment is included by bsd.pkg.mk and defines the
4 # relevant variables and targets for the "checksum" phase.
5 #
6 # Public targets for pkgsrc users:
7 #
8 # checksum:
9 #       Check that the distfiles have the correct checksums. If they
10 #       aren't yet fetched, fetch them.  This target can be run at
11 #       any time and is meant to be run by the user.
12 #
13 # checksum-phase:
14 #       Same as "checksum" but is meant to run automatically by pkgsrc.
15 #       This target does not run after the "extract" phase is complete.
16 #
17 # depends-checksum:
18 #       Run checksum for the current package and all dependencies.
19 #
20 # Public targets for pkgsrc developers:
21 #
22 # makesum:
23 #       Add or update the checksums of the distfiles to ${DISTINFO_FILE}.
24 #
25 #       See also: patchsum
26 #
27 # makepatchsum, mps:
28 #       Add or update the checksums of the patches to ${DISTINFO_FILE}.
29 #
30 # makedistinfo, distinfo, mdi:
31 #       Create or update the checksums in ${DISTINFO_FILE}.
32 #
33 # Package-settable variables:
34 #
35 # NO_CHECKSUM
36 #       When defined, no checksums are validated for patches or
37 #       distfiles.
38 #
39 #       Note: This does not alter the behaviour of FAILOVER_FETCH.
40 #
41 #       Default value: undefined
42 #
43
44 .PHONY: checksum checksum-phase
45 .PHONY: makesum makepatchsum mps mdi makedistinfo distinfo
46
47 checksum checksum-phase distinfo makesum: fetch
48 makedistinfo mdi: distinfo
49 mps: makepatchsum
50
51 .include "checksum.mk"