[BACK]Return to bsd.nls.mk CVS log [TXT][DIR] Up to [local] / src / share / mk

Annotation of src/share/mk/bsd.nls.mk, Revision 1.3

1.3     ! mickey      1: #      $OpenBSD$
        !             2: #      $NetBSD: bsd.nls.mk,v 1.2 1995/04/27 18:05:38 jtc Exp $
1.1       deraadt     3:
                      4: .if !target(.MAIN)
                      5: .if exists(${.CURDIR}/../Makefile.inc)
                      6: .include "${.CURDIR}/../Makefile.inc"
                      7: .endif
                      8:
                      9: .MAIN: all
                     10: .endif
                     11:
                     12: .SUFFIXES: .cat .msg
                     13:
                     14: .msg.cat:
                     15:        @rm -f ${.TARGET}
                     16:        gencat ${.TARGET} ${.IMPSRC}
                     17:
                     18: .if defined(NLS) && !empty(NLS)
                     19: NLSALL= ${NLS:.msg=.cat}
                     20: .endif
                     21:
                     22: .if !defined(NLSNAME)
                     23: .if defined(PROG)
                     24: NLSNAME=${PROG}
                     25: .else
                     26: NLSNAME=lib${LIB}
                     27: .endif
                     28: .endif
                     29:
                     30: nlsinstall:
                     31: .if defined(NLSALL)
                     32:        @for msg in ${NLSALL}; do \
                     33:                NLSLANG=`basename $$msg .cat`; \
                     34:                dir=${DESTDIR}${NLSDIR}/$${NLSLANG}; \
                     35:                install -d $$dir; \
                     36:                install ${COPY} -o ${NLSOWN} -g ${NLSGRP} -m ${NLSMODE} $$msg $$dir/${NLSNAME}.cat; \
                     37:        done
                     38: .endif
                     39:
                     40: .if defined(NLSALL)
                     41: all: ${NLSALL}
                     42:
                     43: install:  nlsinstall
                     44:
                     45: cleandir: cleannls
                     46: cleannls:
                     47:        rm -f ${NLSALL}
                     48: .endif