1 # $NetBSD: Makefile.distrib,v 1.6 2004/02/02 18:43:39 he 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 "15ZD"
8 # DISTRIBVER NetBSD version with dots, as in "1.5ZD"
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 DISTRIBVERDEP= ${NETBSDSRCDIR}/sys/sys/param.h \
26 ${NETBSDSRCDIR}/sys/conf/osrelease.sh
28 MAKESUMS= MAKE=${MAKE:Q} CKSUM=${TOOL_CKSUM:Q} ${HOST_SH} ${DISTRIBDIR}/sets/makesums
29 RELEASE_INSTALL=${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE}
32 .endif # _MAKEFILE_DISTRIB_