1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-03 09:00:21 +00:00

Slightly relax requirements to set per-file variables

This commit is contained in:
Alexey Zelkin 2002-03-04 10:59:37 +00:00
parent f66b3927b3
commit cf355fd5f9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91628

View File

@ -30,8 +30,6 @@
# bsd.obj.mk: cleandir and obj
GENCAT?= gencat -new
# from NetBSD -- to use in libraries
#NLSNAME?= ${PROG:Ulib${LIB}}
NLSDIR?= ${SHAREDIR}/nls
NLSGRP?= ${SHAREGRP}
@ -51,12 +49,19 @@ NLS?=
# .msg file pre-build rules
#
.for file in ${NLS}
.if !defined(NLSSRCDIR_${file}) && defined(NLSSRCDIR)
NLSSRCDIR_${file}=${NLSSRCDIR}
.endif
.if !defined(NLSSRCFILES_${file}) && defined(NLSSRCFILES)
NLSSRCFILES_${file}=${NLSSRCFILES}
.endif
.if defined(NLSSRCFILES_${file})
${file}:
@rm -f ${.TARGET}
cat ${NLSSRCDIR_${file}}/${NLSSRCFILES_${file}} > ${.TARGET}
.endif
CLEANFILES+= ${file}
.endif
.endfor
#