bsd.nls.mk (91621) | bsd.nls.mk (91628) |
---|---|
1# Based on $NetBSD: bsd.nls.mk,v 1.35 2001/11/28 20:19:08 tv Exp $ | 1# Based on $NetBSD: bsd.nls.mk,v 1.35 2001/11/28 20:19:08 tv Exp $ |
2# $FreeBSD: head/share/mk/bsd.nls.mk 91621 2002-03-04 09:50:28Z phantom $ | 2# $FreeBSD: head/share/mk/bsd.nls.mk 91628 2002-03-04 10:59:37Z phantom $ |
3# 4# This include file <bsd.nls.mk> handles building and installing Native 5# Language Support (NLS) catalogs 6# 7# +++ variables +++ 8# 9# GENCAT A program for converting .msg files into compiled NLS 10# .cat files. [gencat -new] --- 14 unchanged lines hidden (view full) --- 25# +++ targets +++ 26# 27# install: 28# Install compiled NLS files 29# 30# bsd.obj.mk: cleandir and obj 31 32GENCAT?= gencat -new | 3# 4# This include file <bsd.nls.mk> handles building and installing Native 5# Language Support (NLS) catalogs 6# 7# +++ variables +++ 8# 9# GENCAT A program for converting .msg files into compiled NLS 10# .cat files. [gencat -new] --- 14 unchanged lines hidden (view full) --- 25# +++ targets +++ 26# 27# install: 28# Install compiled NLS files 29# 30# bsd.obj.mk: cleandir and obj 31 32GENCAT?= gencat -new |
33# from NetBSD -- to use in libraries 34#NLSNAME?= ${PROG:Ulib${LIB}} | |
35 36NLSDIR?= ${SHAREDIR}/nls 37NLSGRP?= ${SHAREGRP} 38NLSMODE?= ${NOBINMODE} 39NLSOWN?= ${SHAREOWN} 40 41NLS?= 42 43.MAIN: all 44 45.SUFFIXES: .cat .msg 46 47.msg.cat: 48 ${GENCAT} ${.TARGET} ${.IMPSRC} 49 50# 51# .msg file pre-build rules 52# 53.for file in ${NLS} | 33 34NLSDIR?= ${SHAREDIR}/nls 35NLSGRP?= ${SHAREGRP} 36NLSMODE?= ${NOBINMODE} 37NLSOWN?= ${SHAREOWN} 38 39NLS?= 40 41.MAIN: all 42 43.SUFFIXES: .cat .msg 44 45.msg.cat: 46 ${GENCAT} ${.TARGET} ${.IMPSRC} 47 48# 49# .msg file pre-build rules 50# 51.for file in ${NLS} |
52.if !defined(NLSSRCDIR_${file}) && defined(NLSSRCDIR) 53NLSSRCDIR_${file}=${NLSSRCDIR} 54.endif 55.if !defined(NLSSRCFILES_${file}) && defined(NLSSRCFILES) 56NLSSRCFILES_${file}=${NLSSRCFILES} 57.endif 58 |
|
54.if defined(NLSSRCFILES_${file}) 55${file}: 56 @rm -f ${.TARGET} 57 cat ${NLSSRCDIR_${file}}/${NLSSRCFILES_${file}} > ${.TARGET} | 59.if defined(NLSSRCFILES_${file}) 60${file}: 61 @rm -f ${.TARGET} 62 cat ${NLSSRCDIR_${file}}/${NLSSRCFILES_${file}} > ${.TARGET} |
58.endif | |
59CLEANFILES+= ${file} | 63CLEANFILES+= ${file} |
64.endif |
|
60.endfor 61 62# 63# .cat file build rules 64# 65NLSALL= ${NLS:.msg=.cat} 66CLEANFILES+= ${NLSALL} 67 --- 39 unchanged lines hidden --- | 65.endfor 66 67# 68# .cat file build rules 69# 70NLSALL= ${NLS:.msg=.cat} 71CLEANFILES+= ${NLSALL} 72 --- 39 unchanged lines hidden --- |