summaryrefslogtreecommitdiffstats
path: root/share/termcap/Makefile
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1994-07-06 02:16:59 +0000
committerrgrimes <rgrimes@FreeBSD.org>1994-07-06 02:16:59 +0000
commit34606f13d5b4603cc00088bd61a6afd4581b983e (patch)
treebb356b0be0120b16ccebcf80e5992f2146de3de5 /share/termcap/Makefile
parentc913fe973b367d424dd6d44c78b513e352b0a8a7 (diff)
downloadFreeBSD-src-34606f13d5b4603cc00088bd61a6afd4581b983e.zip
FreeBSD-src-34606f13d5b4603cc00088bd61a6afd4581b983e.tar.gz
all: does not need to depend on ${MAN5}, remove special case clean:
and cleandir: targets, simple use a CLEANFILES+= to handle this very simple special case. Add ${COPY} knob to install commands so that files don't disappear out of the obj tree after a make install.
Diffstat (limited to 'share/termcap/Makefile')
-rw-r--r--share/termcap/Makefile14
1 files changed, 5 insertions, 9 deletions
diff --git a/share/termcap/Makefile b/share/termcap/Makefile
index 0121989..027c95f 100644
--- a/share/termcap/Makefile
+++ b/share/termcap/Makefile
@@ -6,7 +6,9 @@
#
MAN5= termcap.0
-all: termcap termcap.db ${MAN5}
+CLEANFILES+= termcap termcap.db
+
+all: termcap termcap.db
termcap: reorder termcap.src
ex - ${.CURDIR}/termcap.src < ${.CURDIR}/reorder > /dev/null
@@ -14,16 +16,10 @@ termcap: reorder termcap.src
termcap.db: termcap
cap_mkdb termcap
-clean:
- rm -f termcap termcap.db
-
-cleandir: clean
- rm -f ${MAN5}
-
beforeinstall:
- install -o ${BINOWN} -g ${BINGRP} -m 444 termcap \
+ install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 termcap \
${DESTDIR}${BINDIR}/misc
- install -o ${BINOWN} -g ${BINGRP} -m 444 termcap.db \
+ install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 termcap.db \
${DESTDIR}${BINDIR}/misc
install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/map3270 \
${DESTDIR}${BINDIR}/misc
OpenPOWER on IntegriCloud