NetBSD/x11/share/fonts/encodings/Makefile.enc

33 lines
855 B
Makefile

# $NetBSD: Makefile.enc,v 1.7 2004/03/06 03:13:06 rtr Exp $
FILESDIR= ${X11FONTDIR}/${ENCDIR}
.PATH: ${X11SRCDIR.xc}/fonts/${ENCDIR}
FILES+= ${GZFILES}
CLEANFILES+= ${GZFILES}
CLEANFILES+= ${GZFILES:S/.gz$/.gz.tmp/}
.SUFFIXES: .enc .enc.gz
.enc.enc.gz:
${_MKTARGET_CREATE}
gzip -9fc ${.IMPSRC} > ${.TARGET}.tmp && mv ${.TARGET}.tmp ${.TARGET}
realall: ${FILES}
MKFONTSCALEDIR!= cd ${NETBSDSRCDIR}/x11/tools/mkfontscale && ${PRINTOBJDIR}
MKFONTSCALE= ${MKFONTSCALEDIR}/mkfontscale
afterinstall:
${_MKMSG_CREATE} ${DESTDIR}${FILESDIR}/encodings.dir
(cd ${DESTDIR}${FILESDIR} && \
rm -f encodings.dir ; \
${MKFONTSCALE} -b -s -l -n -r -p ${X11FONTDIR}/${ENCDIR}/ -e . ${ENCARGS} . ; \
)
.if ${MKUNPRIVED} != "no"
echo ".${FILESDIR}/encodings.dir type=file mode=0644 uname=${BINOWN} gname=${BINGRP}" \
| ${METALOG.add}
.endif