8500 loader: need __divmoddi4 and __udivmoddi4
[unleashed.git] / share / mk / nls.mk
blob67c5eeaa9f3b865f5aa91b5f8a3cb42ff7ccb3c7
1 # $NetBSD: bsd.nls.mk,v 1.3 1996/10/18 02:34:45 thorpej Exp $
3 .if !target(.MAIN)
4 # init.mk not included
5 .-include <${.CURDIR:H}/Makefile.inc>
7 .MAIN: all
8 .endif
10 .SUFFIXES: .cat .msg
12 .msg.cat:
13 @rm -f ${.TARGET}
14 gencat ${.TARGET} ${.IMPSRC}
16 .if defined(NLS) && !empty(NLS)
17 NLSALL= ${NLS:.msg=.cat}
18 .NOPATH: ${NLSALL}
19 .endif
21 .if !defined(NLSNAME)
22 .if defined(PROG)
23 NLSNAME=${PROG}
24 .else
25 NLSNAME=lib${LIB}
26 .endif
27 .endif
29 nlsinstall:
30 .if defined(NLSALL)
31 @for msg in ${NLSALL}; do \
32 NLSLANG=`basename $$msg .cat`; \
33 dir=${DESTDIR}${NLSDIR}/$${NLSLANG}; \
34 ${INSTALL} -d $$dir; \
35 ${INSTALL} ${COPY} -o ${NLSOWN} -g ${NLSGRP} -m ${NLSMODE} $$msg $$dir/${NLSNAME}.cat; \
36 done
37 .endif
39 .if defined(NLSALL)
40 all: ${NLSALL}
42 install: nlsinstall
44 cleandir: cleannls
45 cleannls:
46 rm -f ${NLSALL}
47 .endif