aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pcvt
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-12-20 00:40:05 +0000
committerBruce Evans <bde@FreeBSD.org>1997-12-20 00:40:05 +0000
commit389bd59ff782e609a3018cba8be8bf8b8fc53996 (patch)
tree0f83b85b8895a4c50528c3dee227f6ddeb255098 /usr.sbin/pcvt
parent1d5b85a7825932b55f64233040574490e7c42a1a (diff)
downloadsrc-389bd59ff782e609a3018cba8be8bf8b8fc53996.tar.gz
src-389bd59ff782e609a3018cba8be8bf8b8fc53996.zip
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.
Notes
Notes: svn path=/head/; revision=31889
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 d21f8ed18090..7a5946ad3fa5 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