Sync usage with man page.
[netbsd-mini2440.git] / share / i18n / esdb / BIG5 / Makefile.inc
blob7c7127e76baa34e6d74b03d7152b8cbeaaf2bd4d
1 # $NetBSD: Makefile.inc,v 1.2 2008/10/25 22:27:35 apb Exp $
3 .PATH: ${.CURDIR}/BIG5
5 CODE:=                  Big5
6 PARTFILE_Big5:=         ${.CURDIR}/BIG5/Big5.part
7 ALIASFILE_Big5:=        ${.CURDIR}/BIG5/Big5.alias
8 SUBDIR_Big5:=           BIG5
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
15 .endfor
17 .for i in ${Big5_PART}
18 .if !exists(${.CURDIR}/BIG5/Big5-${i:S/:/@/}.src)
19 # XXX: FIXME
20 Big5-${i:S/:/@/}.src: Big5.src Big5.variable
21         ${_MKTARGET_CREATE}
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
26 .endif
27 .endfor