1 # $NetBSD: bsd.nls.mk,v 1.47 2011/09/10 16:57:35 apb Exp $
6 realinstall
: nlsinstall
9 NLSNAME?
= ${PROG
:Ulib
${LIB}}
16 NLSALL
= ${NLS
:.msg
=.cat
}
26 ${TOOL_GENCAT} ${.TARGET
} ${.IMPSRC
}
28 .
endif # ${MKNLS} != "no"
31 nlsinstall
:: # ensure existence
38 ${INSTALL_FILE} -o
${NLSOWN} -g
${NLSGRP} -m
${NLSMODE} \
41 .for F in
${NLSALL
:O
:u
}
42 _F
:= ${DESTDIR}${NLSDIR}/${F
:T
:R
}/${NLSNAME}.cat
# installed path
44 .if
${MKUPDATE} == "no"
45 ${_F}! ${F} __nlsinstall
# install rule
46 .if
!defined
(BUILD
) && !make
(all) && !make
(${F})
47 ${_F}! .MADE
# no build at install
50 ${_F}: ${F} __nlsinstall
# install rule
51 .if
!defined
(BUILD
) && !make
(all) && !make
(${F})
52 ${_F}: .MADE
# no build at install
57 .PRECIOUS
: ${_F} # keep if install fails
61 .
endif # ${MKNLS} != "no"
64 .if
${MKNLS} != "no" && !empty
(NLS
)
65 CLEANDIRFILES
+= ${NLSALL}
68 ##### Pull in related .mk logic
71 .
include <bsd.
clean.mk
>