1# $NetBSD: Makefile.distrib,v 1.9 2012/02/17 00:33:25 riz Exp $ 2# 3# Makefile snippet to setup various make variables variables used in distrib/: 4# 5# Variables defined: 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 10# 11# Commands defined: 12# MAKESUMS runs sets/makesums with the appropriate environment 13# RELEASE_INSTALL installs release binaries 14# 15# 16 17.if !defined(_MAKEFILE_DISTRIB_) 18_MAKEFILE_DISTRIB_=1 19 20.include <bsd.sys.mk> # for HOST_SH 21 22DISTRIBDIR= ${NETBSDSRCDIR}/distrib 23DISTRIBREV!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh -s 24DISTRIBVER!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh 25MODULEVER!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh -k 26DISTRIBVERDEP= ${NETBSDSRCDIR}/sys/sys/param.h \ 27 ${NETBSDSRCDIR}/sys/conf/osrelease.sh 28 29MAKESUMS= MAKE=${MAKE:Q} CKSUM=${TOOL_CKSUM:Q} ${HOST_SH} ${DISTRIBDIR}/sets/makesums 30RELEASE_INSTALL=${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE} 31 32 33.endif # _MAKEFILE_DISTRIB_ 34