1 # $NetBSD: Makefile.mkfontscale,v 1.3 2004/03/09 11:41:19 drochner Exp $
3 # Note: needs "install" run in ./encodings first
6 MKFONTSCALEDIR!= cd ${NETBSDSRCDIR}/x11/tools/mkfontscale && ${PRINTOBJDIR}
7 MKFONTSCALE= ${MKFONTSCALEDIR}/mkfontscale
9 afterinstall: create.fonts.dir create.fonts.scale
10 .if ${MKUNPRIVED} != "no"
11 echo ".${FILESDIR}/fonts.dir type=file mode=0444 uname=root gname=wheel" \
13 echo ".${FILESDIR}/fonts.scale type=file mode=0444 uname=root gname=wheel" \
16 ${_MKMSG_INSTALL} ${DESTDIR}${FILESDIR}/encodings.dir
17 ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
18 ${DESTDIR}${X11FONTDIR}/encodings/encodings.dir \
19 ${DESTDIR}${FILESDIR}/encodings.dir
21 create.fonts.dir: create.fonts.scale
22 ${_MKMSG_CREATE} ${DESTDIR}${FILESDIR}/fonts.dir
23 rm -f ${DESTDIR}${FILESDIR}/fonts.dir
24 ${MKFONTSCALE} -b -s -l ${DESTDIR}${FILESDIR}
26 .if !target(create.fonts.scale)
28 ${_MKMSG_CREATE} ${DESTDIR}${FILESDIR}/fonts.scale
29 rm -f ${DESTDIR}${FILESDIR}/fonts.scale
30 ${MKFONTSCALE} ${DESTDIR}${FILESDIR}
33 .PHONY: create.fonts.dir create.fonts.scale