26 lines
539 B
Makefile
26 lines
539 B
Makefile
# $NetBSD: newvers_stand.mk,v 1.4 2021/05/21 11:28:11 nakayama Exp $
|
|
|
|
VERSIONFILE?=version
|
|
VERSIONMACHINE?=${MACHINE}
|
|
.if exists(${VERSIONFILE})
|
|
|
|
.if !make(depend)
|
|
SRCS+= vers.c
|
|
.endif
|
|
CLEANFILES+= vers.c
|
|
|
|
.if ${MKREPRO:Uno} == "yes"
|
|
. if ${MKREPRO_TIMESTAMP:U0} != 0
|
|
VERSIONFLAGS+=-D ${MKREPRO_TIMESTAMP}
|
|
. else
|
|
VERSIONFLAGS+=-d
|
|
. endif
|
|
.endif
|
|
|
|
vers.c: ${VERSIONFILE} ${_NETBSD_VERSION_DEPENDS}
|
|
${_MKTARGET_CREATE}
|
|
${HOST_SH} ${S}/conf/newvers_stand.sh \
|
|
-m ${VERSIONMACHINE} ${VERSIONFLAGS} ${.ALLSRC:[1]} ${NEWVERSWHAT}
|
|
|
|
.endif
|