Home | History | Annotate | Line # | Download | only in CP
Makefile.inc revision 1.1
      1 # $NetBSD: Makefile.inc,v 1.1 2003/06/27 08:40:11 tshiozak Exp $
      2 
      3 .PATH: ${.CURDIR}/CP
      4 
      5 SRCS_mapper.dir+=	mapper.dir.CP
      6 SRCS_charset.pivot+=	charset.pivot.CP
      7 CLEANFILES+=		mapper.dir.CP charset.pivot.CP
      8 PART_CP!=		sed '/^\#/d;/^$$/d;' ${.CURDIR}/CP/CP.part
      9 
     10 mapper.dir.CP: ${.CURDIR}/CP/CP.part ${.CURDIR}/CP/mapper.dir.CP.src
     11 	echo "# CP" > $@
     12 .for i in ${PART_CP}
     13 	printf '%-32s%-16s%s\n' 'CP$i/UCS' 'mapper_std' \
     14 		'CP/CP${i:S/:/@/}%UCS.mps' >> $@
     15 	printf '%-32s%-16s%s\n' 'UCS/CP$i' 'mapper_std' \
     16 		'CP/UCS%CP${i:S/:/@/}.mps' >> $@
     17 .endfor
     18 	cat ${.CURDIR}/CP/mapper.dir.CP.src >> $@
     19 	echo >> $@
     20 
     21 charset.pivot.CP: ${.CURDIR}/CP/CP.part ${.CURDIR}/CP/charset.pivot.CP.src
     22 	echo "# CP" > $@
     23 .for i in ${PART_CP}
     24 	printf "%-32s%-32s%d\n" 'CP$i' 'UCS' '1' >> $@
     25 	printf "%-32s%-32s%d\n" 'UCS' 'CP$i' '1' >> $@
     26 .endfor
     27 	cat ${.CURDIR}/CP/charset.pivot.CP.src >> $@
     28 	echo >> $@
     29 
     30 .for i in ${PART_CP}
     31 FILES+=		CP${i:S/:/@/}%UCS.mps UCS%CP${i:S/:/@/}.mps
     32 CLEANFILES+=	CP${i:S/:/@/}%UCS.mps UCS%CP${i:S/:/@/}.mps
     33 FILESDIR_CP${i:S/:/@/}%UCS.mps=	${BINDIR}/CP
     34 FILESDIR_UCS%CP${i:S/:/@/}.mps=	${BINDIR}/CP
     35 .endfor
     36