1 # $NetBSD: Makefile.mkfontscale,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $
3 # Note: needs "install" run in ./encodings first
4 # It depends upon FILESDIR being set.
7 .ifndef _MAKEFILE_MKFONTSCALE_
8 _MAKEFILE_MKFONTSCALE_=1
12 .include "${NETBSDSRCDIR}/external/mit/xorg/tools/fc-cache/Makefile.fc-cache"
14 MKFONTSCALEDIR!= cd ${NETBSDSRCDIR}/external/mit/xorg/tools/mkfontscale && ${PRINTOBJDIR}
15 MKFONTSCALE= ${MKFONTSCALEDIR}/mkfontscale
17 afterinstall: create.fonts.dir create.fonts.scale
18 .if ${MKUNPRIVED} != "no"
19 echo ".${FILESDIR}/fonts.dir type=file mode=0444 uname=root gname=wheel" \
21 echo ".${FILESDIR}/fonts.scale type=file mode=0444 uname=root gname=wheel" \
24 ${_MKMSG_INSTALL} ${DESTDIR}${FILESDIR}/encodings.dir
25 ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
26 ${DESTDIR}${X11FONTDIR}/encodings/encodings.dir \
27 ${DESTDIR}${FILESDIR}/encodings.dir
29 create.fonts.dir: create.fonts.scale
30 ${_MKMSG_CREATE} ${DESTDIR}${FILESDIR}/fonts.dir
31 rm -f ${DESTDIR}${FILESDIR}/fonts.dir
32 ${MKFONTSCALE} -b -s -l ${DESTDIR}${FILESDIR}
34 .if !target(create.fonts.scale)
36 ${_MKMSG_CREATE} ${DESTDIR}${FILESDIR}/fonts.scale
37 rm -f ${DESTDIR}${FILESDIR}/fonts.scale
38 ${MKFONTSCALE} ${DESTDIR}${FILESDIR}
41 .PHONY: create.fonts.dir create.fonts.scale
43 .endif # _MAKEFILE_MKFONTSCALE_