minix/external/mit/xorg/share/fonts/Makefile.bdf
Lionel Sambuc 0a6a1f1d05 NetBSD re-synchronization of the source tree
This brings our tree to NetBSD 7.0, as found on -current on the
10-10-2015.

This updates:
 - LLVM to 3.6.1
 - GCC to GCC 5.1
 - Replace minix/commands/zdump with usr.bin/zdump
 - external/bsd/libelf has moved to /external/bsd/elftoolchain/
 - Import ctwm
 - Drop sprintf from libminc

Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
2016-01-13 20:32:14 +01:00

58 lines
1.6 KiB
Makefile

# $NetBSD: Makefile.bdf,v 1.4 2014/08/05 15:40:59 apb Exp $
# Font files built using this makefile are cleaned in two ways:
#
# * temporary build files are cleaned by 'make clean' (via CLEANFILES).
#
# * Actual finished BDF and PCF files (BDFFILES and PCFFILES,
# respectively) are removed only by "cleandir" because they
# take a long time to build. (See the 'cleanfonts' target.)
#
# Also, we *must* split these operations into multiple 'rm' commands
# because of the number of files being removed. Trying to 'rm' all of
# these files with one command will cause some host systems to fail
# (rm arg list too long).
FILESDIR= ${X11FONTDIR}/${FONTSUBDIR}
.PATH: ${X11SRCDIR.${FONTSRCPKG}}
FONTSUFFIX= .gz
FONTGZIP= | ${TOOL_GZIP_N} ${GZIPLEVEL:U-9} -cf
.include "${NETBSDSRCDIR}/external/mit/xorg/tools/bdftopcf/Makefile.bdftopcf"
.include "${NETBSDSRCDIR}/external/mit/xorg/tools/ucs2any/Makefile.ucs2any"
.for _F _M in ${UCSFILES} # {
${_F}-${_M}.bdf: ${_F}.bdf
${_MKTARGET_CREATE}
${UCS2ANY} ${.ALLSRC} ${DESTDIR}${X11FONTDIR}/util/map-${_M} ${_M}
BDFFILES+= ${_F}-${_M}.bdf
.endfor # }
.SUFFIXES: .bdf .pcf${FONTSUFFIX}
.bdf.pcf${FONTSUFFIX}:
${_MKTARGET_CREATE}
rm -f ${.TARGET}
${BDFTOPCF} -t ${.IMPSRC} ${FONTGZIP} > ${.TARGET}.tmp \
&& mv ${.TARGET}.tmp ${.TARGET}
PCFFILES+= ${BDFFILES:S/.bdf$/.pcf${FONTSUFFIX}/}
CLEANFILES+= ${BDFFILES:S/.bdf$/.pcf${FONTSUFFIX}.tmp/}
FILES+= ${PCFFILES}
.if exists(fonts.alias)
FILES+= fonts.alias
.endif
realall: ${PCFFILES}
cleandir: cleanfonts
cleanfonts: .PHONY .NOTMAIN
rm -f ${BDFFILES}
rm -f ${PCFFILES}
.include "../../Makefile.font"