summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.nls.mk
diff options
context:
space:
mode:
authorphantom <phantom@FreeBSD.org>2002-03-04 10:59:37 +0000
committerphantom <phantom@FreeBSD.org>2002-03-04 10:59:37 +0000
commit64962bd7fdf5e5e373a2d58a50e31717db8e7402 (patch)
tree53308040c05d93b2d891ab4382def9ede7d5a70e /share/mk/bsd.nls.mk
parentd12220dfdb42285b897ff2fa62b19338c6bdb081 (diff)
downloadFreeBSD-src-64962bd7fdf5e5e373a2d58a50e31717db8e7402.zip
FreeBSD-src-64962bd7fdf5e5e373a2d58a50e31717db8e7402.tar.gz
Slightly relax requirements to set per-file variables
Diffstat (limited to 'share/mk/bsd.nls.mk')
-rw-r--r--share/mk/bsd.nls.mk11
1 files changed, 8 insertions, 3 deletions
diff --git a/share/mk/bsd.nls.mk b/share/mk/bsd.nls.mk
index 5725fba..ceb822e 100644
--- a/share/mk/bsd.nls.mk
+++ b/share/mk/bsd.nls.mk
@@ -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
#
OpenPOWER on IntegriCloud