1 # $NetBSD: Makefile.inc,v 1.2 2008/10/25 22:27:35 apb Exp $
6 PARTFILE_Big5:= ${.CURDIR}/BIG5/Big5.part
7 ALIASFILE_Big5:= ${.CURDIR}/BIG5/Big5.alias
9 .include "${.CURDIR}/Makefile.part"
11 .for i in ${Big5_PART:S/:/@/}
12 Big5_$i_variable!= ${TOOL_SED} \
13 '/^\#/d;/^ *$$/d;/^${i:S/@/:/}[ ]/!d;s/^[^ ]*[ ]*//' \
14 ${.CURDIR}/BIG5/Big5.variable
17 .for i in ${Big5_PART}
18 .if !exists(${.CURDIR}/BIG5/Big5-${i:S/:/@/}.src)
20 Big5-${i:S/:/@/}.src: Big5.src Big5.variable
22 ${TOOL_SED} -e 's/encoding/Big5-$i/' \
23 -e 's/variable/${Big5_$i_variable}/' \
24 ${.CURDIR}/BIG5/Big5.src > $@
25 CLEANFILES+= Big5-${i:S/:/@/}.src