1 # $NetBSD: Makefile.distrib,v 1.9 2012/02/17 00:33:25 riz Exp $
3 # Makefile snippet to setup various make variables variables used in distrib/:
6 # DISTRIBDIR Top level of distrib
7 # DISTRIBREV NetBSD version without dots, as in "59924"
8 # DISTRIBVER NetBSD version with dots, as in "5.99.24"
9 # DISTRIBVERDEP Files to depend on for version/revision vars above
12 # MAKESUMS runs sets/makesums with the appropriate environment
13 # RELEASE_INSTALL installs release binaries
17 .if !defined(_MAKEFILE_DISTRIB_)
20 .include <bsd.sys.mk> # for HOST_SH
22 DISTRIBDIR= ${NETBSDSRCDIR}/distrib
23 DISTRIBREV!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh -s
24 DISTRIBVER!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh
25 MODULEVER!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh -k
26 DISTRIBVERDEP= ${NETBSDSRCDIR}/sys/sys/param.h \
27 ${NETBSDSRCDIR}/sys/conf/osrelease.sh
29 MAKESUMS= MAKE=${MAKE:Q} CKSUM=${TOOL_CKSUM:Q} ${HOST_SH} ${DISTRIBDIR}/sets/makesums
30 RELEASE_INSTALL=${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE}
33 .endif # _MAKEFILE_DISTRIB_