blob: 7f142406197230d2027eb7748b84b1137d217474 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# $NetBSD: bsd.checksum.mk,v 1.5 2007/03/07 01:06:11 rillig Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and defines the
# relevant variables and targets for the "checksum" phase.
#
# Public targets for pkgsrc users:
#
# checksum:
# Check that the distfiles have the correct checksums. If they
# aren't yet fetched, fetch them.
#
# Public targets for pkgsrc developers:
#
# makesum:
# Add or update the checksums of the distfiles to ${DISTINFO_FILE}.
#
# See also: patchsum
#
# makepatchsum, mps:
# Add or update the checksums of the patches to ${DISTINFO_FILE}.
#
# makedistinfo, distinfo, mdi:
# Create or update the checksums in ${DISTINFO_FILE}.
#
# Package-settable variables:
#
# NO_CHECKSUM
# When defined, no checksums are generated for patches or
# distfiles.
#
# Default value: undefined
#
.PHONY: checksum makesum makepatchsum mps mdi makedistinfo distinfo
checksum makesum: fetch
makedistinfo distinfo mdi: makepatchsum makesum
mps: makepatchsum
.if defined(NO_CHECKSUM)
checksum makesum makepatchsum mps mdi makedistinfo distinfo:
@${DO_NADA}
.else
. include "${PKGSRCDIR}/mk/checksum/checksum.mk"
.endif
|