1 # $NetBSD: bsd.nls.mk,v 1.45 2004/01/29 01:48:45 lukem Exp $
7 realinstall
: nlsinstall
10 NLSNAME?
= ${PROG
:Ulib
${LIB}}
17 NLSALL
= ${NLS
:.msg
=.cat
}
27 ${TOOL_GENCAT} ${.TARGET
} ${.IMPSRC
}
29 .
endif # ${MKNLS} != "no"
32 nlsinstall
:: # ensure existence
39 ${INSTALL_FILE} -o
${NLSOWN} -g
${NLSGRP} -m
${NLSMODE} \
42 .for F in
${NLSALL
:O
:u
}
43 _F
:= ${DESTDIR}${NLSDIR}/${F
:T
:R
}/${NLSNAME}.cat
# installed path
45 .if
${MKUPDATE} == "no"
46 ${_F}! ${F} __nlsinstall
# install rule
47 .if
!defined
(BUILD
) && !make
(all) && !make
(${F})
48 ${_F}! .MADE
# no build at install
51 ${_F}: ${F} __nlsinstall
# install rule
52 .if
!defined
(BUILD
) && !make
(all) && !make
(${F})
53 ${_F}: .MADE
# no build at install
58 .PRECIOUS
: ${_F} # keep if install fails
62 .
endif # ${MKNLS} != "no"
66 .if
${MKNLS} != "no" && !empty
(NLS
)
70 ##### Pull in related .mk logic