minor cleanups
SCCS-vsn: include/Makefile 5.40
-# @(#)Makefile 5.39 (Berkeley) %G%
+# @(#)Makefile 5.40 (Berkeley) %G%
#
# Doing a make install builds /usr/include
#
#
# Doing a make install builds /usr/include
#
all clean cleandir depend lint tags:
SUBDIRS=arpa protocols
all clean cleandir depend lint tags:
SUBDIRS=arpa protocols
-STD= a.out.h ar.h assert.h bitstring.h ctype.h ndbm.h \
- dirent.h disktab.h fstab.h fts.h glob.h grp.h kvm.h limits.h \
- math.h memory.h mp.h netdb.h nlist.h paths.h pcc.h pwd.h ranlib.h \
- regexp.h resolv.h setjmp.h sgtty.h stab.h stdarg.h stddef.h \
- stdlib.h stdio.h string.h strings.h struct.h sysexits.h time.h \
- ttyent.h tzfile.h utmp.h varargs.h vfont.h vis.h
+STD= a.out.h ar.h assert.h bitstring.h ctype.h dirent.h disktab.h \
+ fstab.h fts.h glob.h grp.h kvm.h limits.h math.h memory.h mp.h \
+ ndbm.h netdb.h nlist.h paths.h pcc.h pwd.h ranlib.h regexp.h \
+ resolv.h setjmp.h sgtty.h stab.h stdarg.h stddef.h stdio.h \
+ stdlib.h string.h strings.h struct.h sysexits.h time.h ttyent.h \
+ tzfile.h utmp.h varargs.h vfont.h vis.h
LMCH= float.h frame.h
LSYS= errno.h fcntl.h signal.h syslog.h termios.h unistd.h
NOOBJ= noobj
LMCH= float.h frame.h
LSYS= errno.h fcntl.h signal.h syslog.h termios.h unistd.h
NOOBJ= noobj
.elif (${MACHINE} == "tahoe")
DIRS+= tahoe tahoemath tahoevba tahoeif
.elif (${MACHINE} == "vax")
.elif (${MACHINE} == "tahoe")
DIRS+= tahoe tahoemath tahoevba tahoeif
.elif (${MACHINE} == "vax")
-DIRS+= vax vaxmba vaxuba vaxif
+DIRS+= vax vaxbi vaxif vaxmba vaxuba
.endif
# Define SHARED to indicate whether you want symbolic links to the system
.endif
# Define SHARED to indicate whether you want symbolic links to the system
# SHARED= copies
SHARED= symlinks
# SHARED= copies
SHARED= symlinks
-all include clean cleandir depend lint tags:
-
install: ${SHARED}
@echo installing ${STD}
@-for i in ${STD}; do \
install: ${SHARED}
@echo installing ${STD}
@-for i in ${STD}; do \
${DESTDIR}/usr/include/Makefile
rm -f ${DESTDIR}/usr/include/machine
ln -s ./${MACHINE} ${DESTDIR}/usr/include/machine
${DESTDIR}/usr/include/Makefile
rm -f ${DESTDIR}/usr/include/machine
ln -s ./${MACHINE} ${DESTDIR}/usr/include/machine
- chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/machine;
+ chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/machine
@echo installing ${LSYS}
@-for i in ${LSYS}; do \
rm -f ${DESTDIR}/usr/include/$$i; \
@echo installing ${LSYS}
@-for i in ${LSYS}; do \
rm -f ${DESTDIR}/usr/include/$$i; \
chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \
done
chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \
done
+copies:
+ @echo copies: ${DIRS}
+ @-for i in ${DIRS}; do \
+ rm -rf ${DESTDIR}/usr/include/$$i; \
+ cd /sys; \
+ tar cf - $$i/*.h | (cd ${DESTDIR}/usr/include; tar xpfB -); \
+ done
+
rm -rf ${DESTDIR}/usr/include/$$i; \
if [ ! -s ${DESTDIR}/usr/include/$$i ]; \
then \
rm -rf ${DESTDIR}/usr/include/$$i; \
if [ ! -s ${DESTDIR}/usr/include/$$i ]; \
then \
- rm -rf ${DESTDIR}/usr/include/$$i; \
- cd /sys; \
- tar cf - $$i/*.h | (cd ${DESTDIR}/usr/include; tar xpfB -); \
+ if [ ! -d $$i ]; \
+ then \
+ mkdir $$i; \
+ fi; \
+ for j in `cd /sys/$$i; echo *.h`; do \
+ cmp -s /sys/$$i/$$j $$i/$$j || \
+ install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
+ ${SYS}/$$i/$$j $$i/$$j; \
+ done; \
done
.include <bsd.prog.mk>
done
.include <bsd.prog.mk>