summaryrefslogtreecommitdiff
path: root/share/termtypes/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'share/termtypes/Makefile')
-rw-r--r--share/termtypes/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/share/termtypes/Makefile b/share/termtypes/Makefile
new file mode 100644
index 00000000000..ae529e7a01c
--- /dev/null
+++ b/share/termtypes/Makefile
@@ -0,0 +1,40 @@
+# $OpenBSD: Makefile,v 1.1 1998/12/07 18:23:36 millert Exp $
+#
+# Take termcap/terminfo master file and generate termcap/terminfo .db files
+# master: http://www.tuxedo.org/~esr/terminfo/termtypes.master.gz
+
+MAN= termcap.5
+CLEANFILES+= terminfo.src termcap.src terminfo.db termcap.db
+
+all: terminfo.db termcap.db
+
+terminfo.src: termtypes.master
+ tic -I ${.ALLSRC} | sed \
+ -e 's,/usr/share/lib/tabset,/usr/share/tabset,g' \
+ -e 's,/usr/lib/tabset,/usr/share/tabset,g' \
+ > ${.OBJDIR}/terminfo.src
+
+terminfo.db: terminfo.src
+ info_mkdb -f terminfo ${.OBJDIR}/terminfo.src
+
+termcap.src: termtypes.master
+ tic -C ${.ALLSRC} | sed \
+ -e 's,/usr/share/lib/tabset,/usr/share/tabset,g' \
+ -e 's,/usr/lib/tabset,/usr/share/tabset,g' \
+ > ${.OBJDIR}/termcap.src
+
+termcap.db: termcap.src
+ cap_mkdb -f termcap ${.OBJDIR}/termcap.src
+
+realinstall:
+ ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 terminfo.db \
+ ${DESTDIR}${BINDIR}/misc/terminfo.db
+ ${INSTALL} ${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
+
+.include <bsd.prog.mk>