Makefile.inc revision 1.5 1 # $NetBSD: Makefile.inc,v 1.5 2008/10/25 22:27:36 apb Exp $
2
3 .PATH: ${.CURDIR}/UTF
4
5 CODE:= UTF
6 .include "${.CURDIR}/Makefile.part"
7
8 UTF-16-mod= UTF1632
9 UTF-16-var= utf16
10 UTF-16BE-mod= UTF1632
11 UTF-16BE-var= utf16,big,force
12 UTF-16LE-mod= UTF1632
13 UTF-16LE-var= utf16,little,force
14 UTF-32-mod= UTF1632
15 UTF-32-var= utf32
16 UTF-32BE-mod= UTF1632
17 UTF-32BE-var= utf32,big,force
18 UTF-32LE-mod= UTF1632
19 UTF-32LE-var= utf32,little,force
20 UTF-8-mod= UTF8
21 UTF-8-var= utf8
22 UTF-7-mod= UTF7
23 UTF-7-var= utf7
24
25 .for i in ${UTF_PART}
26 UTF-$i.src: UTF.src
27 ${_MKTARGET_CREATE}
28 ${TOOL_SED} \
29 -e 's/UTF-x/UTF-$i/' \
30 -e 's/UTF-mod/${UTF-$i-mod}/' \
31 -e 's/UTF-var/${UTF-$i-var}/' \
32 $> > $@
33 CLEANFILES+= UTF-$i.src
34 .endfor
35