1 # $NetBSD: Makefile,v 1.7 2006/03/13 19:45:36 tnozaki Exp $ 2 3 NOMAN= 4 5 .include <bsd.own.mk> 6 7 .SUFFIXES: .src .646 .mps 8 9 BINDIR?= /usr/share/i18n/csmapper 10 SRCS_mapper.dir+= mapper.dir.src 11 SRCS_charset.pivot+= charset.pivot.src 12 13 SUBDIR= APPLE CNS CP EBCDIC GB ISO646 ISO-8859 JIS KS MISC 14 .for i in ${SUBDIR} 15 .if exists(${.CURDIR}/$i/Makefile.inc) 16 .include "${.CURDIR}/$i/Makefile.inc" 17 .endif 18 .endfor 19 20 # ---------------------------------------------------------------------- 21 22 mapper.dir: ${SRCS_mapper.dir} 23 ${_MKTARGET_CREATE} 24 cat $> > $@ 25 mapper.dir.db: mapper.dir 26 ${_MKTARGET_CREATE} 27 ${TOOL_MKCSMAPPER} -m -o $@ $> 28 FILES+= mapper.dir mapper.dir.db 29 CLEANFILES+= mapper.dir mapper.dir.db 30 31 charset.pivot: ${SRCS_charset.pivot} 32 ${_MKTARGET_CREATE} 33 cat $> > $@ 34 charset.pivot.pvdb: charset.pivot 35 ${_MKTARGET_CREATE} 36 ${TOOL_MKCSMAPPER} -p -o $@ $> 37 FILES+= charset.pivot charset.pivot.pvdb 38 CLEANFILES+= charset.pivot charset.pivot.pvdb 39 40 .src.mps: 41 ${_MKTARGET_CREATE} 42 ${TOOL_MKCSMAPPER} -o $@ $> 43 44 all: ${FILES} 45 realall: ${FILES} 46 47 .include <bsd.prog.mk> 48