summaryrefslogtreecommitdiff
path: root/share/termtypes/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'share/termtypes/Makefile')
-rw-r--r--share/termtypes/Makefile15
1 files changed, 4 insertions, 11 deletions
diff --git a/share/termtypes/Makefile b/share/termtypes/Makefile
index e11faaec5b9..b959b6f50c0 100644
--- a/share/termtypes/Makefile
+++ b/share/termtypes/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.20 2011/07/06 18:49:08 millert Exp $
+# $OpenBSD: Makefile,v 1.21 2011/07/06 18:53:13 nicm Exp $
#
# Take termcap/terminfo master file and generate termcap/terminfo .db files
@@ -10,28 +10,21 @@ all: terminfo.db termcap.db termcap
terminfo.src: termtypes.master
${TIC} -I -x ${.ALLSRC} | sed -e '/^#/d' -e '/^$$/d' > ${.TARGET}
- @if [ ! -s ${.TARGET} ]; then \
- echo ${.TARGET} is zero length! You need to update ${TIC} ;\
- rm -f ${.TARGET} ;\
- exit 1 ;\
- fi
+ @[ -s ${.TARGET} ] || exit 1
terminfo.db: terminfo.src
cap_mkdb -i -f terminfo terminfo.src
termcap.src: termtypes.master
${TIC} -C -x ${.ALLSRC} | sed -e '/^#/d' -e '/^$$/d' > ${.TARGET}
- @if [ ! -s ${.TARGET} ]; then \
- echo ${.TARGET} is zero length! You need to update ${TIC} ;\
- rm -f ${.TARGET} ;\
- exit 1 ;\
- fi
+ @[ -s ${.TARGET} ] || exit 1
termcap.db: termcap.src
cap_mkdb -f termcap termcap.src
termcap: termtypes.master
${TIC} -C -x ${.ALLSRC} > ${.TARGET}
+ @[ -s ${.TARGET} ] || exit 1
realinstall:
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 terminfo.db \