summaryrefslogtreecommitdiff
path: root/mk/checksum/bsd.checksum.mk
blob: d44a74a01f419a6bd18141af433da5fe115dcaf9 (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
# $NetBSD: bsd.checksum.mk,v 1.1 2006/07/13 14:02:34 jlam 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
#

######################################################################
### 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
checksum makesum makepatchsum:
	@${DO_NADA}
.else
.  include "${PKGSRCDIR}/mk/checksum/checksum.mk"
.endif

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

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