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:
parent
f66b3927b3
commit
cf355fd5f9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91628
@ -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
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user