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