[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / src / share / termcap

File: [local] / src / share / termcap / Attic / Makefile (download)

Revision 1.4, Sun Oct 6 20:57:05 1996 UTC (27 years, 8 months ago) by tholo
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.3: +1 -0 lines

Install a symlink from /etc/termcap to the termcap file in /usr/share/misc
for some legacy (and GNU) software to find it

#	$OpenBSD: Makefile,v 1.4 1996/10/06 20:57:05 tholo Exp $
#	from: @(#)Makefile	5.14 (Berkeley) 9/15/92

MAN=	termcap.5

CLEANFILES= termcap.db
all: termcap.db

termcap.db: termcap.src
	cat ${.ALLSRC} | sed \
	    -e 's,/usr/share/lib/tabset,/usr/share/tabset,g' \
	    -e 's,/usr/lib/tabset,/usr/share/tabset,g' \
	    > ${.OBJDIR}/fixed
	cap_mkdb -f termcap ${.OBJDIR}/fixed

realinstall:
	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 termcap.db \
	     ${DESTDIR}${BINDIR}/misc/termcap.db
	install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/termcap.src \
	     ${DESTDIR}${BINDIR}/misc/termcap
	install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/map3270 \
	     ${DESTDIR}${BINDIR}/misc/map3270
	ln -fs ${BINDIR}/misc/termcap ${DESTDIR}/etc/termcap

CLEANFILES+= fixed

.include <bsd.prog.mk>