ee69168070
-rename the fonts.dir/fonts.scale targets to avoid collision with regular files -allow the rule for "fonts.scale" to be overridden, and do so in the Speedo Makefile
34 lines
1.1 KiB
Makefile
34 lines
1.1 KiB
Makefile
# $NetBSD: Makefile.mkfontscale,v 1.4 2004/03/09 16:30:55 drochner Exp $
|
|
|
|
# Note: needs "install" run in ./encodings first
|
|
#
|
|
|
|
MKFONTSCALEDIR!= cd ${NETBSDSRCDIR}/x11/tools/mkfontscale && ${PRINTOBJDIR}
|
|
MKFONTSCALE= ${MKFONTSCALEDIR}/mkfontscale
|
|
|
|
afterinstall: create.fonts.dir create.fonts.scale
|
|
.if ${MKUNPRIVED} != "no"
|
|
echo ".${FILESDIR}/fonts.dir type=file mode=0444 uname=root gname=wheel" \
|
|
| ${METALOG.add}
|
|
echo ".${FILESDIR}/fonts.scale type=file mode=0444 uname=root gname=wheel" \
|
|
| ${METALOG.add}
|
|
.endif
|
|
${_MKMSG_INSTALL} ${DESTDIR}${FILESDIR}/encodings.dir
|
|
${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
|
|
${DESTDIR}${X11FONTDIR}/encodings/encodings.dir \
|
|
${DESTDIR}${FILESDIR}/encodings.dir
|
|
|
|
create.fonts.dir: create.fonts.scale
|
|
${_MKMSG_CREATE} ${DESTDIR}${FILESDIR}/fonts.dir
|
|
rm -f ${DESTDIR}${FILESDIR}/fonts.dir
|
|
${MKFONTSCALE} -b -s -l ${DESTDIR}${FILESDIR}
|
|
|
|
.if !target(create.fonts.scale)
|
|
create.fonts.scale:
|
|
${_MKMSG_CREATE} ${DESTDIR}${FILESDIR}/fonts.scale
|
|
rm -f ${DESTDIR}${FILESDIR}/fonts.scale
|
|
${MKFONTSCALE} ${DESTDIR}${FILESDIR}
|
|
.endif
|
|
|
|
.PHONY: create.fonts.dir create.fonts.scale
|