No empty .Rs/.Re
[netbsd-mini2440.git] / x11 / share / fonts / bdf / Makefile.bdf
blob95a7258aa385d050d808644193a9473864af4ca6
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}
19 FONTSUFFIX=     .gz
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
27         ${_MKTARGET_CREATE}
28         ${UCS2ANY} ${.ALLSRC} ${DESTDIR}${X11FONTDIR}/util/map-${_M} ${_M}
30 BDFFILES+=      ${_F}-${_M}.bdf
31 .endfor                                                                 # }
33 .SUFFIXES: .bdf .pcf${FONTSUFFIX}
35 .bdf.pcf${FONTSUFFIX}:
36         ${_MKTARGET_CREATE}
37         rm -f ${.TARGET}
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/}
44 FILES+=         ${PCFFILES}
45 .if exists(fonts.alias)
46 FILES+=         fonts.alias
47 .endif
49 realall:        ${PCFFILES}
51 cleandir: cleanfonts
53 cleanfonts: .PHONY .NOTMAIN
54         rm -f ${BDFFILES}
55         rm -f ${PCFFILES}
57 .include "../Makefile.mkfontscale"