1# $NetBSD: Makefile.inc,v 1.1 2006/06/15 15:34:20 tnozaki Exp $
2# $DragonFly: src/share/i18n/csmapper/GEORGIAN/Makefile.inc,v 1.1 2008/04/10 10:21:08 hasso Exp $
3
4.PATH: ${.CURDIR}/GEORGIAN
5
6SRCS_mapper.dir+=	mapper.dir.GEORGIAN
7SRCS_charset.pivot+=	charset.pivot.GEORGIAN
8CLEANFILES+=		mapper.dir.GEORGIAN charset.pivot.GEORGIAN
9PART_GEORGIAN!=		sed '/^\#/d;/^$$/d;' ${.CURDIR}/GEORGIAN/GEORGIAN.part
10
11mapper.dir.GEORGIAN: ${.CURDIR}/GEORGIAN/GEORGIAN.part
12	${_MKTARGET_CREATE}
13	(\
14	    echo "# GEORGIAN";\
15	    for i in ${PART_GEORGIAN}; do \
16		f=`echo $$i | sed 's/:/@/'`; \
17		printf '%-32s%-16s%s\n' GEORGIAN-$$i'/UCS' \
18		    mapper_std GEORGIAN/GEORGIAN-$$f'%UCS.mps';\
19		printf '%-32s%-16s%s\n' UCS/GEORGIAN-$$i \
20		    mapper_std GEORGIAN/UCS%GEORGIAN-$$f'.mps';\
21	    done;\
22	    echo;\
23	) > ${.TARGET}
24
25charset.pivot.GEORGIAN: ${.CURDIR}/GEORGIAN/GEORGIAN.part
26	${_MKTARGET_CREATE}
27	(\
28	    echo "# GEORGIAN";\
29	    for i in ${PART_GEORGIAN}; do \
30		printf "%-32s%-32s%d\n" GEORGIAN-$$i UCS 1;\
31		printf "%-32s%-32s%d\n" UCS GEORGIAN-$$i 1;\
32	    done;\
33	    echo;\
34	) > ${.TARGET}
35
36.for i in ${PART_GEORGIAN}
37FILES+=		GEORGIAN-${i:S/:/@/}%UCS.mps UCS%GEORGIAN-${i:S/:/@/}.mps
38CLEANFILES+=	GEORGIAN-${i:S/:/@/}%UCS.mps UCS%GEORGIAN-${i:S/:/@/}.mps
39FILESDIR_GEORGIAN-${i:S/:/@/}%UCS.mps=	${BINDIR}/GEORGIAN
40FILESDIR_UCS%GEORGIAN-${i:S/:/@/}.mps=	${BINDIR}/GEORGIAN
41.endfor
42