Deleted Added
sdiff udiff text old ( 91628 ) new ( 91632 )
full compact
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 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]

--- 21 unchanged lines hidden (view full) ---

32GENCAT?= gencat -new
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

--- 9 unchanged lines hidden (view full) ---

57.endif
58
59.if defined(NLSSRCFILES_${file})
60${file}:
61 @rm -f ${.TARGET}
62 cat ${NLSSRCDIR_${file}}/${NLSSRCFILES_${file}} > ${.TARGET}
63CLEANFILES+= ${file}
64.endif
65.endfor
66
67#
68# .cat file build rules
69#
70NLSALL= ${NLS:.msg=.cat}
71CLEANFILES+= ${NLSALL}
72

--- 7 unchanged lines hidden (view full) ---

80.for F in ${NLSALL}
81_F:= ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat
82
83${_F}: ${F} __nlsinstall # install rule
84nlsinstall:: ${_F}
85.PRECIOUS: ${_F} # keep if install fails
86.endfor
87
88#
89
90.if !defined(NO_NLS) && !empty(NLS)
91all-nls: ${NLSALL}
92.else
93all-nls:
94.endif
95
96all: all-nls _SUBDIR
97install: beforeinstall nlsinstall afterinstall
98
99.if !target(distribute)
100distribute:
101.endif
102
103.if !target(beforeinstall)
104beforeinstall:
105.endif
106
107.if !target(afterinstall)
108afterinstall:
109.endif
110
111.include <bsd.obj.mk>