NetBSD/x11/share/fonts/Makefile.mkfontscale

34 lines
1.1 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile.mkfontscale,v 1.4 2004/03/09 16:30:55 drochner Exp $
2004-03-06 06:13:06 +03:00
# 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
2004-03-06 06:13:06 +03:00
create.fonts.dir: create.fonts.scale
2004-03-06 06:13:06 +03:00
${_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:
2004-03-06 06:13:06 +03:00
${_MKMSG_CREATE} ${DESTDIR}${FILESDIR}/fonts.scale
rm -f ${DESTDIR}${FILESDIR}/fonts.scale
${MKFONTSCALE} ${DESTDIR}${FILESDIR}
.endif
2004-03-06 06:13:06 +03:00
.PHONY: create.fonts.dir create.fonts.scale