summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/isa/pcvt/Util/Makefile6
-rw-r--r--sys/arch/i386/isa/pcvt/Util/Makefile.inc13
2 files changed, 6 insertions, 13 deletions
diff --git a/sys/arch/i386/isa/pcvt/Util/Makefile b/sys/arch/i386/isa/pcvt/Util/Makefile
index 97bf6993fe6..dd8a268916d 100644
--- a/sys/arch/i386/isa/pcvt/Util/Makefile
+++ b/sys/arch/i386/isa/pcvt/Util/Makefile
@@ -6,4 +6,10 @@ SUBDIR+= vgaio kbdio set2061
SUBDIR+= demo
.endif
+includes:
+ -cd ${.CURDIR}; cmp -s ../pcvt_ioctl.h \
+ ${DESTDIR}/usr/include/machine/pcvt_ioctl.h > /dev/null 2>&1 || \
+ install -c -o ${BINOWN} -g ${BINGRP} -m 444 ../pcvt_ioctl.h \
+ ${DESTDIR}/usr/include/machine
+
.include <bsd.subdir.mk>
diff --git a/sys/arch/i386/isa/pcvt/Util/Makefile.inc b/sys/arch/i386/isa/pcvt/Util/Makefile.inc
index bf448bc3a60..e292550b2e7 100644
--- a/sys/arch/i386/isa/pcvt/Util/Makefile.inc
+++ b/sys/arch/i386/isa/pcvt/Util/Makefile.inc
@@ -7,19 +7,6 @@ FONTDIR = /usr/share/misc/pcvtfonts
LIBDIR = /usr/lib
LIBMODE = 644
-# for pcvt_ioctl.h
-
-INCDIR = /usr/include/machine
-INCOWN = bin
-INCGRP = bin
-INCMODE = 444
-
-${INCDIR}/pcvt_ioctl.h: ${.CURDIR}/../../pcvt_ioctl.h
- install ${COPY} -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} \
- ${.CURDIR}/../../pcvt_ioctl.h ${INCDIR}
-
-.depend: ${INCDIR}/pcvt_ioctl.h
-
MAN3EXT = 3
MAN4EXT = 4
MAN5EXT = 5