1 # $NetBSD: Makefile.bdf,v 1.6 2004/03/08 22:33:00 cgd Exp $
3 # Font files built using this makefile are cleaned in two ways:
5 # * temporary build files are cleaned by 'make clean' (via CLEANFILES).
7 # * Actual finished BDF and PCF files (BDFFILES and PCFFILES,
8 # respectively) are removed only by "cleandir" because they
9 # take a long time to build. (See the 'cleanfonts' target.)
11 # Also, we *must* split these operations into multiple 'rm' commands
12 # because of the number of files being removed. Trying to 'rm' all of
13 # these files with one command will cause some host systems to fail
14 # (rm arg list too long).
16 FILESDIR= ${X11FONTDIR}/${FONTSUBDIR}
17 .PATH: ${X11SRCDIR.xc}/fonts/bdf/${FONTSUBDIR}
20 FONTGZIP= | gzip ${GZIPLEVEL:U-9} -ncf
22 .include "${NETBSDSRCDIR}/x11/tools/bdftopcf/Makefile.bdftopcf"
23 .include "${NETBSDSRCDIR}/x11/tools/ucs2any/Makefile.ucs2any"
25 .for _F _M in ${UCSFILES} # {
26 ${_F}-${_M}.bdf: ${_F}.bdf
28 ${UCS2ANY} ${.ALLSRC} ${DESTDIR}${X11FONTDIR}/util/map-${_M} ${_M}
30 BDFFILES+= ${_F}-${_M}.bdf
33 .SUFFIXES: .bdf .pcf${FONTSUFFIX}
35 .bdf.pcf${FONTSUFFIX}:
38 ${BDFTOPCF} -t ${.IMPSRC} ${FONTGZIP} > ${.TARGET}.tmp \
39 && mv ${.TARGET}.tmp ${.TARGET}
41 PCFFILES+= ${BDFFILES:S/.bdf$/.pcf${FONTSUFFIX}/}
42 CLEANFILES+= ${BDFFILES:S/.bdf$/.pcf${FONTSUFFIX}.tmp/}
45 .if exists(fonts.alias)
53 cleanfonts: .PHONY .NOTMAIN
57 .include "../Makefile.mkfontscale"