xref: /freebsd/share/syscons/scrnmaps/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1PACKAGE=	syscons-data
2
3SCRMAPS = armscii8-2haik8.scm \
4	  iso-8859-1_to_cp437.scm iso-8859-4_for_vga9.scm \
5	  iso-8859-7_to_cp437.scm \
6	  koi8-r2cp866.scm koi8-u2cp866u.scm \
7	  us-ascii_to_cp437.scm
8
9SCRMAPS_MK = ${SCRMAPS:R:S/$/.mk/g}
10CLEANFILES+= ${SCRMAPS_MK} ${SCRMAPS}
11
12FILES=	${SCRMAPS}
13FILESDIR= ${SHAREDIR}/syscons/scrnmaps
14
15.if ${MACHINE} == "host" || ${MK_DIRDEPS_BUILD} == "no"
16DEPENDOBJS+= ${SCRMAPS_MK}
17build-tools: ${SCRMAPS_MK}
18
19${SCRMAPS_MK}: ${.TARGET:R} mkscrfil.c ${BUILD_TOOLS_META}
20	${CC:N${CCACHE_BIN}} ${CFLAGS} -I${.CURDIR} -DFIL=\"${.TARGET:R}\" \
21	    ${LDFLAGS} -o ${.TARGET} ${.CURDIR}/mkscrfil.c
22.endif
23
24${SCRMAPS}: ${.TARGET:R}.mk
25	${BTOOLSPATH:U.}/${.TARGET:R}.mk ${.TARGET:R}.tmp
26	uuencode ${.TARGET:R}.tmp ${.TARGET:R} > ${.TARGET}
27	rm -f ${.TARGET:R}.tmp
28
29.include <bsd.prog.mk>
30