projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix typo -- _SYSEXIST_H_ => _SYSEXITS_H_
[unix-history]
/
usr
/
src
/
include
/
Makefile.install
diff --git
a/usr/src/include/Makefile.install
b/usr/src/include/Makefile.install
index
eccfe48
..
f8b47d0
100644
(file)
--- a/
usr/src/include/Makefile.install
+++ b/
usr/src/include/Makefile.install
@@
-1,59
+1,54
@@
-#
-# 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.2 (Berkeley) %G%
+# @(#)Makefile.install 5.7 (Berkeley) %G%
#
# Makefile for /usr/include, used to convert system include subdirectories
#
# 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.
+# 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
-#
follow symbolic
links.
+# The ``rm -rf''s used below are safe because rm doesn't
follow symbolic
+# links.
#
#
-DESTDIR=
-MACHINE=vax
-MACHDEP=${MACHINE} vaxif vaxmba vaxuba
-NETDIRS=net netimp netinet netns
-SYSDIRS=${NETDIRS} stand ${MACHDEP}
+
SYS=/sys
SYS=/sys
+DIRS= sys net netimp netinet netns ${MACHINE}
+.if (${MACHINE} == "tahoe")
+DIRS+= tahoeif tahoevba
+.elif (${MACHINE} == "vax")
+DIRS+= vaxif vaxmba vaxuba
+.endif
all:
@echo "\"make symlinks\", \"make copies\", or \"make update\" only"
@false
all:
@echo "\"make symlinks\", \"make copies\", or \"make update\" only"
@false
-symlinks:
- for i in ${SYSDIRS}; do \
+copies:
+ rm -rf machine
+ ln -s ${MACHINE} machine
+ -for i in ${DIRS}; do \
rm -rf $$i; \
rm -rf $$i; \
-
ln -s ${SYS}/$$i $$i
; \
+
(cd ${SYS}; tar cf - $$i/*.h) | tar xpfB -
; \
done
done
- rm -rf sys
- ln -s ${SYS}/h sys
-copies:
- -for i in ${SYSDIRS}; do \
+symlinks:
+ rm -rf machine
+ ln -s ${MACHINE} machine
+ for i in ${DIRS}; do \
rm -rf $$i; \
rm -rf $$i; \
-
(cd ${SYS}; tar cf - $$i/*.h) | tar xpfB -
; \
+
ln -s ${SYS}/$$i $$i
; \
done
done
- rm -rf sys;
- mkdir sys;
- chmod 775 sys;
- -(cd ${SYS}/h; tar cf - *.h) | (cd sys; tar xpfB -)
update:
update:
- -for i in ${SYSDIRS}; do \
+ rm -rf machine
+ ln -s ${MACHINE} machine
+ -for i in ${DIRS}; do \
if [ ! -d $$i ]; \
then \
mkdir $$i; \
fi; \
for j in `cd ${SYS}/$$i; echo *.[ih]`; do \
cmp -s ${SYS}/$$i/$$j $$i/$$j || \
if [ ! -d $$i ]; \
then \
mkdir $$i; \
fi; \
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; \
+ install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
+ ${SYS}/$$i/$$j $$i/$$j; \
done; \
done
done; \
done
- 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; } \
- done;
+
+clean cleandir depend lint tags: