2004-03-09 19:30:55 +03:00
|
|
|
# $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
|
|
|
|
|
2004-03-09 19:30:55 +03:00
|
|
|
afterinstall: create.fonts.dir create.fonts.scale
|
2004-03-09 14:41:19 +03:00
|
|
|
.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
|
|
|
|
2004-03-09 19:30:55 +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}
|
|
|
|
|
2004-03-09 19:30:55 +03:00
|
|
|
.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}
|
2004-03-09 19:30:55 +03:00
|
|
|
.endif
|
2004-03-06 06:13:06 +03:00
|
|
|
|
2004-03-09 19:30:55 +03:00
|
|
|
.PHONY: create.fonts.dir create.fonts.scale
|