NetBSD/x11/share/fonts/Makefile.mkfontscale

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