[BACK]Return to Makefile.part CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / i18n / esdb

File: [cvs.NetBSD.org] / src / share / i18n / esdb / Makefile.part (download)

Revision 1.4, Thu Mar 16 14:28:19 2006 UTC (15 years, 10 months ago) by tnozaki
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: wrstuden-revivesa, mjf-devfs2
Changes since 1.3: +4 -4 lines

suppress annoying warning messages.
noticed by hannken AT netbsd DOT org, thanks.

# $NetBSD: Makefile.part,v 1.4 2006/03/16 14:28:19 tnozaki Exp $

.for code in ${CODE}  # XXX: immediately expand ${CODE}

PARTFILE_${code}?=	${.CURDIR}/${code}/${code}.part
ALIASFILE_${code}?=	${.CURDIR}/${code}/${code}.alias
SEP_${code}?=		-
SUBDIR_${code}?=	${code}
${code}_PART!=		sed '/^\#/d;/^ *$$/d' ${PARTFILE_${code}}
CODESETS_${code}?=	${${code}_PART:C/^/${code}${SEP_${code}}/}
ESDB_${code}?=		${CODESETS_${code}:C/$/.esdb/:S/:/@/}

FILES+=		${ESDB_${code}}
CLEANFILES+=	${ESDB_${code}}
.for i in ${ESDB_${code}}
FILESDIR_$i?=	${BINDIR}/${SUBDIR_${code}}
.endfor

# ----------------------------------------------------------------------
# esdb.dir
#
esdb.dir.${code}: ${PARTFILE_${code}}
	${_MKTARGET_CREATE}
	echo "# ${code}" > $@
.for i in ${${code}_PART}
	printf "%-32s%s\n" "${code}${SEP_${code}}$i" \
		"${SUBDIR_${code}}/${code}${SEP_${code}}${i:S/:/@/}.esdb" >> $@
.endfor
	echo >> $@
SRC_esdb.dir+=	esdb.dir.${code}
CLEANFILES+=	esdb.dir.${code}

# ----------------------------------------------------------------------
# esdb.alias
#
.for i in ${${code}_PART:S/:/@/}
${code}_$i_aliases!= echo \
	`sed '/^\#/d;/^ *$$/d;/^${i:S/@/:/}[ 	]/!d;;s/^[^ 	]*[ 	]*//' \
		${ALIASFILE_${code}}`
.endfor
esdb.alias.${code}: ${PARTFILE_${code}} ${ALIASFILE_${code}}
	${_MKTARGET_CREATE}
	echo "# ${code}" > $@
.for i in ${${code}_PART:S/:/@/}
.for j in ${${code}_$i_aliases}
	printf "%-32s%s\n" "$j" "${code}${SEP_${code}}${i:S/@/:/}" >> $@
.endfor
.endfor
	echo >> $@
SRC_esdb.alias+=esdb.alias.${code}
CLEANFILES+=	esdb.alias.${code}

.endfor # code