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

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

1.44    ! lukem       1: #      $NetBSD: bsd.nls.mk,v 1.43 2003/10/19 03:00:55 lukem Exp $
1.1       jtc         2:
1.31      tv          3: .include <bsd.init.mk>
1.26      mycroft     4:
1.31      tv          5: ##### Basic targets
1.5       mycroft     6: .PHONY:                cleannls nlsinstall
1.29      tv          7: cleandir:      cleannls
1.31      tv          8: realinstall:   nlsinstall
1.1       jtc         9:
1.31      tv         10: ##### Default values
                     11: NLSNAME?=      ${PROG:Ulib${LIB}}
                     12:
                     13: NLS?=
                     14:
                     15: ##### Build rules
                     16: .if ${MKNLS} != "no"
                     17:
                     18: NLSALL=                ${NLS:.msg=.cat}
                     19:
                     20: realall:       ${NLSALL}
                     21: .NOPATH:       ${NLSALL}
1.30      tv         22:
1.1       jtc        23: .SUFFIXES: .cat .msg
                     24:
                     25: .msg.cat:
                     26:        @rm -f ${.TARGET}
1.44    ! lukem      27:        ${_MKTARGET_CREATE}
1.39      lukem      28:        ${TOOL_GENCAT} ${.TARGET} ${.IMPSRC}
1.1       jtc        29:
1.31      tv         30: .endif # ${MKNLS} != "no"
1.1       jtc        31:
1.31      tv         32: ##### Install rules
                     33: nlsinstall::   # ensure existence
1.17      lukem      34: .if ${MKNLS} != "no"
1.24      mycroft    35:
                     36: __nlsinstall: .USE
1.44    ! lukem      37:        ${_MKTARGET_INSTALL}
1.32      tv         38:        ${INSTALL_FILE} -o ${NLSOWN} -g ${NLSGRP} -m ${NLSMODE} \
1.38      perry      39:                ${SYSPKGTAG} ${.ALLSRC} ${.TARGET}
1.24      mycroft    40:
1.27      sommerfe   41: .for F in ${NLSALL:O:u}
1.31      tv         42: _F:=           ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat # installed path
                     43:
1.41      lukem      44: .if ${MKUPDATE} == "no"
1.37      mycroft    45: ${_F}!         ${F} __nlsinstall                       # install rule
                     46: .if !defined(BUILD) && !make(all) && !make(${F})
                     47: ${_F}!         .MADE                                   # no build at install
                     48: .endif
                     49: .else
1.31      tv         50: ${_F}:         ${F} __nlsinstall                       # install rule
1.19      fredb      51: .if !defined(BUILD) && !make(all) && !make(${F})
1.31      tv         52: ${_F}:         .MADE                                   # no build at install
1.1       jtc        53: .endif
1.37      mycroft    54: .endif
                     55:
                     56: nlsinstall::   ${_F}
                     57: .PRECIOUS:     ${_F}                                   # keep if install fails
1.4       christos   58: .endfor
1.31      tv         59:
                     60: .undef _F
                     61: .endif # ${MKNLS} != "no"
                     62:
                     63: ##### Clean rules
1.8       mycroft    64: cleannls:
1.36      tv         65: .if ${MKNLS} != "no" && !empty(NLS)
1.31      tv         66:        rm -f ${NLSALL}
1.4       christos   67: .endif
1.40      lukem      68:
                     69: ##### Pull in related .mk logic
                     70: .include <bsd.obj.mk>
                     71: .include <bsd.sys.mk>

CVSweb <webmaster@jp.NetBSD.org>