Home | History | Annotate | Line # | Download | only in mk
bsd.nls.mk revision 1.4
      1  1.4  christos #	$NetBSD: bsd.nls.mk,v 1.4 1997/04/19 22:24:30 christos Exp $
      2  1.1       jtc 
      3  1.1       jtc .if !target(.MAIN)
      4  1.1       jtc .if exists(${.CURDIR}/../Makefile.inc)
      5  1.1       jtc .include "${.CURDIR}/../Makefile.inc"
      6  1.1       jtc .endif
      7  1.1       jtc 
      8  1.1       jtc .MAIN: all
      9  1.1       jtc .endif
     10  1.1       jtc 
     11  1.1       jtc .SUFFIXES: .cat .msg
     12  1.1       jtc 
     13  1.1       jtc .msg.cat:
     14  1.1       jtc 	@rm -f ${.TARGET}
     15  1.1       jtc 	gencat ${.TARGET} ${.IMPSRC}
     16  1.1       jtc 
     17  1.2       jtc .if defined(NLS) && !empty(NLS)
     18  1.1       jtc NLSALL= ${NLS:.msg=.cat}
     19  1.2       jtc .endif
     20  1.1       jtc 
     21  1.1       jtc .if !defined(NLSNAME)
     22  1.1       jtc .if defined(PROG)
     23  1.1       jtc NLSNAME=${PROG}
     24  1.1       jtc .else
     25  1.1       jtc NLSNAME=lib${LIB}
     26  1.1       jtc .endif
     27  1.1       jtc .endif
     28  1.1       jtc 
     29  1.1       jtc .if defined(NLSALL)
     30  1.1       jtc all: ${NLSALL}
     31  1.1       jtc 
     32  1.1       jtc cleandir: cleannls
     33  1.1       jtc cleannls:
     34  1.1       jtc 	rm -f ${NLSALL}
     35  1.4  christos 
     36  1.4  christos .for F in ${NLSALL}
     37  1.4  christos nlsinstall:: ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat
     38  1.4  christos .if !defined(UPDATE)
     39  1.4  christos .PHONY: ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat
     40  1.4  christos .endif
     41  1.4  christos .if !defined(BUILD)
     42  1.4  christos ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat: .MADE
     43  1.1       jtc .endif
     44  1.4  christos 
     45  1.4  christos ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat: ${F}
     46  1.4  christos 	${INSTALL} -d ${.TARGET:H}
     47  1.4  christos 	${INSTALL} ${COPY} -o ${NLSOWN} -g ${NLSGRP} -m ${NLSMODE} ${.ALLSRC} \
     48  1.4  christos 		${.TARGET}
     49  1.4  christos .endfor
     50  1.4  christos .else
     51  1.4  christos nlsinstall::
     52  1.4  christos .endif
     53  1.4  christos 
     54  1.4  christos install:  nlsinstall
     55