summaryrefslogtreecommitdiffstats
path: root/include/Makefile
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-05-17 01:42:34 +0000
committerbrian <brian@FreeBSD.org>2001-05-17 01:42:34 +0000
commitd46af0e09da30dbec756ce5d48e31b09aeecaceb (patch)
tree13b1b27a67bfcb43eb774763effeb36fd96bedb2 /include/Makefile
parent853c35eea7ad8716dcf211937a24155884e61d4a (diff)
downloadFreeBSD-src-d46af0e09da30dbec756ce5d48e31b09aeecaceb.zip
FreeBSD-src-d46af0e09da30dbec756ce5d48e31b09aeecaceb.tar.gz
Install /sys/dev/digi/digiio.h as /usr/include/dev/digi/digiio.h
I use the (new) DEVFILES variable rather than LSUBDIRS because only the public interface (digiio.h) should be installed.
Diffstat (limited to 'include/Makefile')
-rw-r--r--include/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/Makefile b/include/Makefile
index 9f69eb7..1ebe8fd 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -35,6 +35,7 @@ PFILES= mqueue.h sched.h semaphore.h # aio.h
# Only for default SHARED=copies case
SFILES= soundcard.h joystick.h
+DEVFILES= digi/digiio.h
LFILES= aio.h errno.h fcntl.h inttypes.h linker_set.h poll.h syslog.h \
termios.h ucontext.h
@@ -48,7 +49,8 @@ LSUBDIRS= fs/smbfs isofs/cd9660 ufs/ffs ufs/mfs ufs/ufs \
cam/scsi dev/ppbus dev/usb dev/wi
# For SHARED=symlinks, cam is a symlink, so cam/scsi is taken care of
-LSYMSUBDIRS= fs/smbfs isofs/cd9660 ufs/ffs ufs/mfs ufs/ufs dev/ppbus dev/usb dev/wi
+LSYMSUBDIRS= fs/smbfs isofs/cd9660 ufs/ffs ufs/mfs ufs/ufs \
+ dev/digi dev/ppbus dev/usb dev/wi
# Define SHARED to indicate whether you want symbolic links to the system
# source (``symlinks''), or a separate copy (``copies''). ``symlinks'' is
@@ -109,6 +111,11 @@ copies:
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 $i/*.h \
${DESTDIR}/usr/include/$i
.endfor
+.for i in ${DEVFILES}
+ cd ${.CURDIR}/../sys/dev; \
+ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 $i \
+ ${DESTDIR}/usr/include/dev/$i
+.endfor
.if exists(${.CURDIR}/../sys/${MACHINE_ARCH}/include)
cd ${.CURDIR}/../sys/${MACHINE_ARCH}/include; \
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \
OpenPOWER on IntegriCloud