summaryrefslogtreecommitdiff
path: root/mk/checksum/bsd.checksum.mk
blob: 32b540e102db6b788b8c2e022f36324f638ef875 (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
46
47
# $NetBSD: bsd.checksum.mk,v 1.4 2006/09/19 00:03:44 rillig Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and defines the
# relevant variables and targets for the "checksum" phase.
#
# The following are the "public" targets provided by this module:
#
#    checksum, makesum, makepatchsum, distinfo
#

######################################################################
### checksum, makesum, makepatchsum (PUBLIC)
######################################################################
### checksum is a public target to checksum the fetched distfiles
### for the package.
###
### makesum is a public target to add checksums of the distfiles for
### the package to ${DISTINFO_FILE}.
###
### makepatchsum is a public target to add checksums of the patches
### for the package to ${DISTINFO_FILE}.
###
.if defined(NO_CHECKSUM)
.PHONY: checksum makesum makepatchsum
.  if !target(checksum)
checksum: fetch
	@${DO_NADA}
.  endif
makesum makepatchsum:
	@${DO_NADA}
.else
.  include "${PKGSRCDIR}/mk/checksum/checksum.mk"
.endif

######################################################################
### distinfo (PUBLIC)
######################################################################
### distinfo is a public target to create ${DISTINFO_FILE}.
###
.PHONY: distinfo
distinfo: makepatchsum makesum
	@${DO_NADA}

# Some short aliases for "makepatchsum" and "distinfo".
.PHONY: mps mdi makedistinfo
mps: makepatchsum
mdi makedistinfo: distinfo