1# $FreeBSD: head/share/i18n/csmapper/Makefile.part 219019 2011-02-25 00:04:39Z gabor $
2# $NetBSD: Makefile,v 1.13 2007/03/13 16:34:37 tnozaki Exp $
3
4MKCSMAPPER?= ${.OBJDIR}/../../../../usr.bin/mkcsmapper_static/mkcsmapper_static
5
6ESUBDIR?= ${CODE}
7PARTFILE?= ${.CURDIR}/${CODE}.part
8.if exists(${PARTFILE})
9PART!= sed '/^\#/d;/^$$/d;' ${PARTFILE}
--- 13 unchanged lines hidden (view full) ---
23 ${MKCSMAPPER} -o ${.TARGET} ${.IMPSRC}
24
25.if !target(mapper.dir.${ESUBDIR})
26.if !exists(mapper.dir.${ESUBDIR}.src)
27mapper.dir.${ESUBDIR}: ${CODE}.part
28 echo "# ${ESUBDIR}" > ${.TARGET}
29.for i in ${PART}
30 printf "%-32s%-32s%s\n" ${ENCID:S@%%PART%%@${i}@}/UCS ${MAPPER} \
31 ${ESUBDIR}/${TABLENAME:S@%%PART%%@${i}@}${ENCEXT} >> ${.TARGET}
32 printf "%-32s%-32s%s\n" UCS/${ENCID:S@%%PART%%@${i}@} ${MAPPER} \
33 ${REVSYMBOL}${ESUBDIR}/${RTABLENAME:S@%%PART%%@${i}@}${ENCEXT} >> ${.TARGET}
34.endfor
35 echo >> ${.TARGET}
36.else
37mapper.dir.${ESUBDIR}: mapper.dir.${ESUBDIR}.src
38 (echo "# ${ESUBDIR}" ; cat ${.ALLSRC} ; echo ) > ${.TARGET}
39.endif
40.endif
41CLEANFILES+= mapper.dir.${ESUBDIR}
--- 12 unchanged lines hidden (view full) ---
54 (echo "# ${ESUBDIR}" ; cat ${.ALLSRC} ; echo ) > ${.TARGET}
55.endif
56.endif
57CLEANFILES+= charset.pivot.${ESUBDIR}
58
59
60.if !defined(MAPS)
61.for i in ${PART}
62.if exists(${TABLENAME:S@%%PART%%@${i}@}.src)
63FILES+= ${TABLENAME:S@%%PART%%@${i}@}.mps
64CLEANFILES+= ${TABLENAME:S@%%PART%%@${i}@}.mps
65.endif
66.if exists(${RTABLENAME:S@%%PART%%@${i}@}.src)
67FILES+= ${RTABLENAME:S@%%PART%%@${i}@}.mps
68CLEANFILES+= ${RTABLENAME:S@%%PART%%@${i}@}.mps
69.endif
70.endfor
71.else
72FILES+= ${MAPS}
73CLEANFILES+= ${MAPS}
74.endif
75
76realall: all
77all: ${FILES} mapper.dir.${ESUBDIR} charset.pivot.${ESUBDIR}
78
79.include "./Makefile.inc"
80.include <bsd.prog.mk>
2# $NetBSD: Makefile,v 1.13 2007/03/13 16:34:37 tnozaki Exp $
3
4MKCSMAPPER?= ${.OBJDIR}/../../../../usr.bin/mkcsmapper_static/mkcsmapper_static
5
6ESUBDIR?= ${CODE}
7PARTFILE?= ${.CURDIR}/${CODE}.part
8.if exists(${PARTFILE})
9PART!= sed '/^\#/d;/^$$/d;' ${PARTFILE}
--- 13 unchanged lines hidden (view full) ---
23 ${MKCSMAPPER} -o ${.TARGET} ${.IMPSRC}
24
25.if !target(mapper.dir.${ESUBDIR})
26.if !exists(mapper.dir.${ESUBDIR}.src)
27mapper.dir.${ESUBDIR}: ${CODE}.part
28 echo "# ${ESUBDIR}" > ${.TARGET}
29.for i in ${PART}
30 printf "%-32s%-32s%s\n" ${ENCID:S@%%PART%%@${i}@}/UCS ${MAPPER} \
31 ${ESUBDIR}/${TABLENAME:S@%%PART%%@${i}@}${ENCEXT} >> ${.TARGET}
32 printf "%-32s%-32s%s\n" UCS/${ENCID:S@%%PART%%@${i}@} ${MAPPER} \
33 ${REVSYMBOL}${ESUBDIR}/${RTABLENAME:S@%%PART%%@${i}@}${ENCEXT} >> ${.TARGET}
34.endfor
35 echo >> ${.TARGET}
36.else
37mapper.dir.${ESUBDIR}: mapper.dir.${ESUBDIR}.src
38 (echo "# ${ESUBDIR}" ; cat ${.ALLSRC} ; echo ) > ${.TARGET}
39.endif
40.endif
41CLEANFILES+= mapper.dir.${ESUBDIR}
--- 12 unchanged lines hidden (view full) ---
54 (echo "# ${ESUBDIR}" ; cat ${.ALLSRC} ; echo ) > ${.TARGET}
55.endif
56.endif
57CLEANFILES+= charset.pivot.${ESUBDIR}
58
59
60.if !defined(MAPS)
61.for i in ${PART}
62.if exists(${TABLENAME:S@%%PART%%@${i}@}.src)
63FILES+= ${TABLENAME:S@%%PART%%@${i}@}.mps
64CLEANFILES+= ${TABLENAME:S@%%PART%%@${i}@}.mps
65.endif
66.if exists(${RTABLENAME:S@%%PART%%@${i}@}.src)
67FILES+= ${RTABLENAME:S@%%PART%%@${i}@}.mps
68CLEANFILES+= ${RTABLENAME:S@%%PART%%@${i}@}.mps
69.endif
70.endfor
71.else
72FILES+= ${MAPS}
73CLEANFILES+= ${MAPS}
74.endif
75
76realall: all
77all: ${FILES} mapper.dir.${ESUBDIR} charset.pivot.${ESUBDIR}
78
79.include "./Makefile.inc"
80.include <bsd.prog.mk>