NetBSD/share/mk/bsd.nls.mk

64 lines
1.1 KiB
Makefile
Raw Normal View History

# $NetBSD: bsd.nls.mk,v 1.10 1997/10/11 08:16:28 mycroft Exp $
.if !target(.MAIN)
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
.endif
1997-05-07 00:54:31 +04:00
.MAIN: all
.endif
1997-05-07 00:54:31 +04:00
.PHONY: cleannls nlsinstall
.if !defined(NONLS)
realinstall: nlsinstall
.endif
1997-05-07 20:45:40 +04:00
cleandir: cleannls
.SUFFIXES: .cat .msg
.msg.cat:
@rm -f ${.TARGET}
gencat ${.TARGET} ${.IMPSRC}
.if defined(NLS) && !empty(NLS)
NLSALL= ${NLS:.msg=.cat}
.endif
.if !defined(NLSNAME)
.if defined(PROG)
NLSNAME=${PROG}
.else
NLSNAME=lib${LIB}
.endif
.endif
.if defined(NLSALL)
.if !defined(NONLS)
all: ${NLSALL}
.endif
cleannls:
rm -f ${NLSALL}
1997-04-20 02:24:30 +04:00
.for F in ${NLSALL}
nlsinstall:: ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat
.if !defined(UPDATE)
.PHONY: ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat
.endif
1997-04-20 02:24:30 +04:00
.if !defined(BUILD)
${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat: .MADE
.endif
.PRECIOUS: ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat
1997-04-20 02:24:30 +04:00
${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat: ${F}
${INSTALL} -d ${.TARGET:H}
${INSTALL} ${COPY} -o ${NLSOWN} -g ${NLSGRP} -m ${NLSMODE} ${.ALLSRC} \
${.TARGET}
.endfor
1997-05-07 20:45:40 +04:00
.else
cleannls:
1997-04-20 02:24:30 +04:00
.endif
1997-05-07 19:53:28 +04:00
.if !target(nlsinstall)
nlsinstall::
.endif