Home | History | Annotate | Line # | Download | only in mk
bsd.nls.mk revision 1.17.2.1
      1  1.17.2.1        he #	$NetBSD: bsd.nls.mk,v 1.17.2.1 1999/09/10 23:01:18 he Exp $
      2       1.1       jtc 
      3      1.11     enami .if !target(__initialized__)
      4      1.11     enami __initialized__:
      5       1.1       jtc .if exists(${.CURDIR}/../Makefile.inc)
      6       1.1       jtc .include "${.CURDIR}/../Makefile.inc"
      7       1.1       jtc .endif
      8       1.1       jtc 
      9       1.5   mycroft .MAIN:		all
     10       1.1       jtc .endif
     11       1.5   mycroft .PHONY:		cleannls nlsinstall
     12      1.17     lukem .if ${MKNLS} != "no"
     13       1.9   mycroft realinstall:	nlsinstall
     14      1.10   mycroft .endif
     15      1.12     lukem cleandir distclean: cleannls
     16       1.1       jtc 
     17       1.1       jtc .SUFFIXES: .cat .msg
     18       1.1       jtc 
     19       1.1       jtc .msg.cat:
     20       1.1       jtc 	@rm -f ${.TARGET}
     21       1.1       jtc 	gencat ${.TARGET} ${.IMPSRC}
     22       1.1       jtc 
     23       1.2       jtc .if defined(NLS) && !empty(NLS)
     24       1.1       jtc NLSALL= ${NLS:.msg=.cat}
     25       1.2       jtc .endif
     26       1.1       jtc 
     27       1.1       jtc .if !defined(NLSNAME)
     28       1.1       jtc .if defined(PROG)
     29       1.1       jtc NLSNAME=${PROG}
     30       1.1       jtc .else
     31       1.1       jtc NLSNAME=lib${LIB}
     32       1.1       jtc .endif
     33       1.1       jtc .endif
     34       1.1       jtc 
     35       1.1       jtc .if defined(NLSALL)
     36      1.17     lukem .if ${MKNLS} != "no"
     37       1.1       jtc all: ${NLSALL}
     38      1.10   mycroft .endif
     39       1.1       jtc 
     40       1.1       jtc cleannls:
     41       1.1       jtc 	rm -f ${NLSALL}
     42       1.4  christos 
     43       1.4  christos .for F in ${NLSALL}
     44       1.4  christos nlsinstall:: ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat
     45       1.4  christos .if !defined(UPDATE)
     46       1.4  christos .PHONY: ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat
     47       1.4  christos .endif
     48  1.17.2.1        he .if !defined(BUILD) && !make(all) && !make(${F})
     49       1.4  christos ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat: .MADE
     50       1.1       jtc .endif
     51       1.4  christos 
     52       1.6   mycroft .PRECIOUS: ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat
     53       1.4  christos ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat: ${F}
     54       1.4  christos 	${INSTALL} -d ${.TARGET:H}
     55      1.15  christos 	${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o ${NLSOWN} -g ${NLSGRP} \
     56      1.15  christos 		-m ${NLSMODE} ${.ALLSRC} ${.TARGET}
     57       1.4  christos .endfor
     58       1.8   mycroft .else
     59       1.8   mycroft cleannls:
     60       1.7   mycroft .endif
     61       1.7   mycroft 
     62       1.7   mycroft .if !target(nlsinstall)
     63       1.4  christos nlsinstall::
     64       1.4  christos .endif
     65