Current Path : /usr/src/share/i18n/esdb/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/src/share/i18n/esdb/Makefile.part |
# $FreeBSD: release/9.1.0/share/i18n/esdb/Makefile.part 219019 2011-02-25 00:04:39Z gabor $ # $NetBSD: Makefile.part,v 1.6 2008/10/25 22:35:36 apb Exp $ MKESDB?= ${.OBJDIR}/../../../../usr.bin/mkesdb_static/mkesdb_static PARTFILE?= ${.CURDIR}/${CODE}.part ALIASFILE?= ${.CURDIR}/${CODE}.alias .if !defined(NO_SEP) SEP?= - .endif .if exists(${PARTFILE}) PART!= sed '/^\#/d;/^ *$$/d' ${PARTFILE} .endif .if !defined(NO_EPREFIX) CODESETS?= ${PART:C/^/${CODE}${SEP}/} EPREFIX?= ${CODE}${SEP} .else CODESETS?= ${PART} EPREFIX?= .endif ESUBDIR?= ${CODE} ESDB?= ${CODESETS:C/$/.esdb/:S/:/@/} FILES+= ${ESDB} FILESDIR= ${ESDBDIR}/${ESUBDIR} .SUFFIXES: .src .esdb .src.esdb: ${MKESDB} -o $@ $> CLEANFILES+= ${ESDB} esdb.dir.${ESUBDIR} esdb.alias.${ESUBDIR} # ---------------------------------------------------------------------- # esdb.dir # esdb.dir.${ESUBDIR}: ${PARTFILE} echo "# ${CODE}" >${.TARGET} .for i in ${PART} printf "%-32s%s\n" "${EPREFIX}$i" \ "${ESUBDIR}/${EPREFIX}${i:S/:/@/}.esdb" >>${.TARGET} .endfor echo >>${.TARGET} # ---------------------------------------------------------------------- # esdb.alias # .for i in ${PART:S/:/@/} ${CODE}_$i_aliases!= echo \ `sed \ '/^\#/d;/^ *$$/d;/^${i:S/@/:/}[ ]/!d;s/^[^ ]*[ ]*//' \ ${ALIASFILE}` .endfor esdb.alias.${ESUBDIR}: ${PARTFILE} ${ALIASFILE} echo "# ${CODE}" >${.TARGET} .for i in ${PART:S/:/@/} .for j in ${${CODE}_$i_aliases} printf "%-32s%s\n" "$j" "${EPREFIX}${i:S/@/:/}" >>${.TARGET} .endfor .endfor echo >>${.TARGET} all: realall realall: esdb.dir.${ESUBDIR} esdb.alias.${ESUBDIR} codesets codesets: ${ESDB} .if !defined(NO_PREPROC) .for i in ${PART} .if !exists(${EPREFIX}${i:S/:/@/}.src) ${EPREFIX}${i:S/:/@/}.src: ${CODE}.src sed ${SED_EXP:S@%%PART%%@${i}@} ${.CURDIR}/${CODE}.src > ${EPREFIX}${i:S/:/@/}.src @echo ${EPREFIX}${i:S/:/@/}.src >>.tmpfiles .endif .endfor .endif .if exists(.tmpfiles) TMPFILES!= cat .tmpfiles CLEANFILES+= ${TMPFILES} .tmpfiles .endif .include "./Makefile.inc" .include <bsd.prog.mk>