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

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
#