Remove building with NOCRYPTO option
[minix.git] / external / mit / xorg / share / fonts / Makefile.bdf
blob1b47fad013c5cc1918add2c1d3395899323e30f7
1 #       $NetBSD: Makefile.bdf,v 1.4 2014/08/05 15:40:59 apb 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.${FONTSRCPKG}}
19 FONTSUFFIX=     .gz
20 FONTGZIP=       | ${TOOL_GZIP_N} ${GZIPLEVEL:U-9} -cf
22 .include "${NETBSDSRCDIR}/external/mit/xorg/tools/bdftopcf/Makefile.bdftopcf"
23 .include "${NETBSDSRCDIR}/external/mit/xorg/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.font"