1 # $DragonFly: src/share/i18n/esdb/Makefile.part,v 1.1 2005/03/10 16:19:55 joerg Exp $
3 .for code in ${CODE} # XXX: immediately expand ${CODE}
5 PARTFILE_${code}?= ${.CURDIR}/${code}/${code}.part
6 ALIASFILE_${code}?= ${.CURDIR}/${code}/${code}.alias
8 SUBDIR_${code}?= ${code}
9 ${code}_PART!= sed '/^\#/d;/^ *$$/d' ${PARTFILE_${code}}
10 CODESETS_${code}?= ${${code}_PART:C/^/${code}${SEP_${code}}/}
11 ESDB_${code}?= ${CODESETS_${code}:C/$/.esdb/:S/:/@/}
13 FILES+= ${ESDB_${code}}
14 CLEANFILES+= ${ESDB_${code}}
15 .for i in ${ESDB_${code}}
16 FILESDIR_$i?= ${BINDIR}/${SUBDIR_${code}}
19 # ----------------------------------------------------------------------
22 esdb.dir.${code}: ${PARTFILE_${code}}
25 .for i in ${${code}_PART}
26 printf "%-32s%s\n" "${code}${SEP_${code}}$i" \
27 "${SUBDIR_${code}}/${code}${SEP_${code}}${i:S/:/@/}.esdb" >> $@
30 SRC_esdb.dir+= esdb.dir.${code}
31 CLEANFILES+= esdb.dir.${code}
33 # ----------------------------------------------------------------------
36 .for i in ${${code}_PART:S/:/@/}
37 ${code}_$i_aliases!= \
38 sed '/^\#/d;/^ *$$/d;/^${i:S/@/:/}[ ]/!d;;s/^[^ ]*[ ]*//' \
41 esdb.alias.${code}: ${PARTFILE_${code}} ${ALIASFILE_${code}}
44 .for i in ${${code}_PART:S/:/@/}
45 .for j in ${${code}_$i_aliases}
46 printf "%-32s%s\n" "$j" "${code}${SEP_${code}}${i:S/@/:/}" >> $@
50 SRC_esdb.alias+=esdb.alias.${code}
51 CLEANFILES+= esdb.alias.${code}