# Copyright (c) 1983,1986 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
# @(#)Makefile.install 5.3 (Berkeley) %G%
# Makefile for /usr/include, used to convert system include subdirectories
# between symbolic links and copies of kernel headers.
# May also be used to update copies from kernel header files.
# The ``rm -rf''s used below are safe because rm doesn't
#MACHDEP=${MACHINE} vaxif vaxmba vaxuba
MACHDEP=${MACHINE} tahoeif tahoevba
NETDIRS=net netimp netinet netns
SYSDIRS=${NETDIRS} stand ${MACHDEP}
@echo "\"make symlinks\", \"make copies\", or \"make update\" only"
for i in ${SYSDIRS}; do \
-for i in ${SYSDIRS}; do \
(cd ${SYS}; tar cf - $$i/*.h) | tar xpfB -; \
-(cd ${SYS}/h; tar cf - *.h) | (cd sys; tar xpfB -)
-for i in ${SYSDIRS}; do \
for j in `cd ${SYS}/$$i; echo *.[ih]`; do \
cmp -s ${SYS}/$$i/$$j $$i/$$j || \
install -c -m 444 ${SYS}/$$i/$$j $$i/$$j; \
for j in `cd ${SYS}/h; echo *.[ih]`; do \
cmp -s ${SYS}/h/$$j sys/$$j || \
{ echo "install -c -m 444 ${SYS}/h/$$j sys/$$j"; \
install -c -m 444 ${SYS}/h/$$j sys/$$j; } \