summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pcvt
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-12-20 00:40:05 +0000
committerbde <bde@FreeBSD.org>1997-12-20 00:40:05 +0000
commit7fefe366df953f53190ff87a1866d46f4da8faaa (patch)
tree25fcc338b6f8cab91ca466255bd83c92c1a46311 /usr.sbin/pcvt
parent6fd5d1abfc877bfd0b5db451977fbc7761ac7b73 (diff)
downloadFreeBSD-src-7fefe366df953f53190ff87a1866d46f4da8faaa.zip
FreeBSD-src-7fefe366df953f53190ff87a1866d46f4da8faaa.tar.gz
Never create the destination directory at install time.
Don't build things at install time. Don't override the (correct) clean rule. Rewrote all the rules and cleaned up.
Diffstat (limited to 'usr.sbin/pcvt')
-rw-r--r--usr.sbin/pcvt/fonts/Makefile72
1 files changed, 12 insertions, 60 deletions
diff --git a/usr.sbin/pcvt/fonts/Makefile b/usr.sbin/pcvt/fonts/Makefile
index d21f8ed..7a5946a 100644
--- a/usr.sbin/pcvt/fonts/Makefile
+++ b/usr.sbin/pcvt/fonts/Makefile
@@ -1,67 +1,19 @@
-.if !exists(${.CURDIR}/../Makefile.inc)
-error:
- @echo
- @echo " You MUST link/copy"
- @echo
- @echo " ../Makefile.inc.NetBSD or ../Makefile.inc.FreeBSD"
- @echo
- @echo " to ../Makefile.inc before you can proceed !"
- @echo
-.else
+# $Id$
-#FONTS = vt100pc.814 vt100sg.814 vt220l.814 vt220h.814 vt220l.808\
-# vt220h.808 vt220l.816 vt220h.816 vt220l.810 vt220h.810
-
-FONTS = vt220l.814 vt220h.814 vt220l.808 vt220h.808 \
- vt220l.816 vt220h.816 vt220l.810 vt220h.810
+.SUFFIXES: .uu
+.uu:
+ rm -f ${.TARGET}
+ uudecode ${.IMPSRC}
+FONTS= vt220h.808 vt220h.810 vt220h.814 vt220h.816 \
+ vt220l.808 vt220l.810 vt220l.814 vt220l.816
+#FONTS+= vt100pc.814 vt100sg.814
CLEANFILES= ${FONTS}
-all: $(FONTS)
-
-install: ${FONTS}
- @if [ ! -d ${DESTDIR}${FONTDIR} ]; then mkdir ${DESTDIR}${FONTDIR};fi
- @for i in ${FONTS}; do \
- ${ECHO} "installing font $$i into ${DESTDIR}${FONTDIR}"; \
- ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
- $$i ${DESTDIR}${FONTDIR}; \
- done
+all: ${FONTS}
-clean:
- rm -f ${CLEANFILES}
+beforeinstall:
+ ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
+ ${FONTS} ${DESTDIR}${FONTDIR}
.include <bsd.prog.mk>
-
-# this seems to be the lowest common denominator
-
-vt100pc.814: ${.CURDIR}/vt100pc.814.uu
- uudecode ${.CURDIR}/$@.uu
-
-vt100sg.814: ${.CURDIR}/vt100sg.814.uu
- uudecode ${.CURDIR}/$@.uu
-
-vt220l.814: ${.CURDIR}/vt220l.814.uu
- uudecode ${.CURDIR}/$@.uu
-
-vt220h.814: ${.CURDIR}/vt220h.814.uu
- uudecode ${.CURDIR}/$@.uu
-
-vt220l.808: ${.CURDIR}/vt220l.808.uu
- uudecode ${.CURDIR}/$@.uu
-
-vt220h.808: ${.CURDIR}/vt220h.808.uu
- uudecode ${.CURDIR}/$@.uu
-
-vt220l.816: ${.CURDIR}/vt220l.816.uu
- uudecode ${.CURDIR}/$@.uu
-
-vt220h.816: ${.CURDIR}/vt220h.816.uu
- uudecode ${.CURDIR}/$@.uu
-
-vt220l.810: ${.CURDIR}/vt220l.810.uu
- uudecode ${.CURDIR}/$@.uu
-
-vt220h.810: ${.CURDIR}/vt220h.810.uu
- uudecode ${.CURDIR}/$@.uu
-
-.endif
OpenPOWER on IntegriCloud