Merge from vendor branch GDB:
[dragonfly.git] / share / syscons / scrnmaps / Makefile
1 # $FreeBSD: src/share/syscons/scrnmaps/Makefile,v 1.14.2.3 2002/08/07 16:31:52 ru Exp $
2 # $DragonFly: src/share/syscons/scrnmaps/Makefile,v 1.3 2004/03/22 20:58:17 dillon Exp $
3
4 SCRMAPS = 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
9 SCRMAPS_MK = ${SCRMAPS:R:S/$/.mk/g}
10 SCRDIR = ${SHAREDIR}/syscons/scrnmaps
11 CLEANFILES+= ${SCRMAPS_MK} ${SCRMAPS}
12
13 NOMAN = noman
14
15 all: ${SCRMAPS}
16
17 build-tools: ${SCRMAPS_MK}
18
19 install:
20         ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${SHAREMODE} \
21             ${SCRMAPS} ${DESTDIR}${SCRDIR}
22
23 ${SCRMAPS}: ${.TARGET:R}.mk
24         ./${.TARGET:R}.mk ${.TARGET:R}.tmp
25         uuencode ${.TARGET:R}.tmp ${.TARGET:R} > ${.TARGET}
26         rm -f ${.TARGET:R}.tmp
27
28 ${SCRMAPS_MK}: ${.TARGET:R} mkscrfil.c
29         ${NXCC} ${NXCFLAGS} -I${.CURDIR} -DFIL=\"${.TARGET:R}\" ${NXLDFLAGS} \
30             -o ${.TARGET} ${.CURDIR}/mkscrfil.c
31
32 .include <bsd.prog.mk>