Home | History | Annotate | Line # | Download | only in mk
bsd.nls.mk revision 1.10
      1  1.10   mycroft #	$NetBSD: bsd.nls.mk,v 1.10 1997/10/11 08:16:28 mycroft 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.5   mycroft .MAIN:		all
      9   1.1       jtc .endif
     10   1.5   mycroft .PHONY:		cleannls nlsinstall
     11  1.10   mycroft .if !defined(NONLS)
     12   1.9   mycroft realinstall:	nlsinstall
     13  1.10   mycroft .endif
     14   1.8   mycroft cleandir:	cleannls
     15   1.1       jtc 
     16   1.1       jtc .SUFFIXES: .cat .msg
     17   1.1       jtc 
     18   1.1       jtc .msg.cat:
     19   1.1       jtc 	@rm -f ${.TARGET}
     20   1.1       jtc 	gencat ${.TARGET} ${.IMPSRC}
     21   1.1       jtc 
     22   1.2       jtc .if defined(NLS) && !empty(NLS)
     23   1.1       jtc NLSALL= ${NLS:.msg=.cat}
     24   1.2       jtc .endif
     25   1.1       jtc 
     26   1.1       jtc .if !defined(NLSNAME)
     27   1.1       jtc .if defined(PROG)
     28   1.1       jtc NLSNAME=${PROG}
     29   1.1       jtc .else
     30   1.1       jtc NLSNAME=lib${LIB}
     31   1.1       jtc .endif
     32   1.1       jtc .endif
     33   1.1       jtc 
     34   1.1       jtc .if defined(NLSALL)
     35  1.10   mycroft .if !defined(NONLS)
     36   1.1       jtc all: ${NLSALL}
     37  1.10   mycroft .endif
     38   1.1       jtc 
     39   1.1       jtc cleannls:
     40   1.1       jtc 	rm -f ${NLSALL}
     41   1.4  christos 
     42   1.4  christos .for F in ${NLSALL}
     43   1.4  christos nlsinstall:: ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat
     44   1.4  christos .if !defined(UPDATE)
     45   1.4  christos .PHONY: ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat
     46   1.4  christos .endif
     47   1.4  christos .if !defined(BUILD)
     48   1.4  christos ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat: .MADE
     49   1.1       jtc .endif
     50   1.4  christos 
     51   1.6   mycroft .PRECIOUS: ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat
     52   1.4  christos ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat: ${F}
     53   1.4  christos 	${INSTALL} -d ${.TARGET:H}
     54   1.4  christos 	${INSTALL} ${COPY} -o ${NLSOWN} -g ${NLSGRP} -m ${NLSMODE} ${.ALLSRC} \
     55   1.4  christos 		${.TARGET}
     56   1.4  christos .endfor
     57   1.8   mycroft .else
     58   1.8   mycroft cleannls:
     59   1.7   mycroft .endif
     60   1.7   mycroft 
     61   1.7   mycroft .if !target(nlsinstall)
     62   1.4  christos nlsinstall::
     63   1.4  christos .endif
     64