1996-09-30 03:29:16 +04:00
|
|
|
# $NetBSD: Makefile,v 1.62 1996/09/29 23:29:16 mrg Exp $
|
1994-10-26 03:55:40 +03:00
|
|
|
# @(#)Makefile 5.45.1.1 (Berkeley) 5/6/91
|
1993-08-01 09:37:30 +04:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
# Missing: mp.h
|
|
|
|
|
1996-02-06 01:34:09 +03:00
|
|
|
FILES= a.out.h ar.h assert.h bitstring.h bm.h cpio.h ctype.h db.h dirent.h \
|
1996-05-10 08:51:34 +04:00
|
|
|
disktab.h err.h fnmatch.h fstab.h fts.h glob.h grp.h ieeefp.h \
|
|
|
|
iso646.h kvm.h langinfo.h limits.h locale.h malloc.h math.h \
|
1996-02-06 01:34:09 +03:00
|
|
|
memory.h mpool.h ndbm.h netdb.h netgroup.h nlist.h nl_types.h paths.h \
|
1996-08-09 08:01:48 +04:00
|
|
|
pwd.h ranlib.h re_comp.h regex.h regexp.h resolv.h rmt.h search.h \
|
|
|
|
setjmp.h sgtty.h signal.h stab.h stddef.h stdio.h stdlib.h string.h \
|
|
|
|
strings.h struct.h sysexits.h tar.h time.h ttyent.h tzfile.h unistd.h \
|
|
|
|
util.h utime.h utmp.h vis.h
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1996-05-10 08:51:34 +04:00
|
|
|
.if (${MACHINE_ARCH} != "alpha")
|
|
|
|
FILES+= dlfcn.h link.h
|
|
|
|
.endif
|
|
|
|
|
1993-10-10 02:28:14 +03:00
|
|
|
DIRS= arpa protocols rpc rpcsvc
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
NOOBJ= noobj
|
|
|
|
|
1996-09-30 03:29:16 +04:00
|
|
|
includes: ${SYS_INCLUDE}
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1996-04-25 04:55:44 +04:00
|
|
|
includes:
|
1993-03-21 12:45:37 +03:00
|
|
|
@echo installing ${FILES}
|
|
|
|
@-for i in ${FILES}; do \
|
|
|
|
cmp -s $$i ${DESTDIR}/usr/include/$$i || \
|
1994-02-10 06:31:19 +03:00
|
|
|
install -c -m 444 $$i ${DESTDIR}/usr/include/$$i; \
|
1993-03-21 12:45:37 +03:00
|
|
|
done
|
|
|
|
@echo installing ${DIRS}
|
|
|
|
@-for i in ${DIRS}; do \
|
1995-01-16 00:58:40 +03:00
|
|
|
install -d -o ${BINOWN} -g ${BINGRP} -m 755 \
|
1995-01-12 22:18:41 +03:00
|
|
|
${DESTDIR}/usr/include/$$i; \
|
1993-03-21 12:45:37 +03:00
|
|
|
(cd $$i; for j in *.[ih]; do \
|
|
|
|
cmp -s $$j ${DESTDIR}/usr/include/$$i/$$j || \
|
1994-02-10 06:31:19 +03:00
|
|
|
install -c -m 444 $$j ${DESTDIR}/usr/include/$$i/$$j; \
|
1993-03-21 12:45:37 +03:00
|
|
|
done); \
|
|
|
|
done
|
1994-02-10 06:31:19 +03:00
|
|
|
chown -R ${BINOWN}:${BINGRP} ${DESTDIR}/usr/include
|
|
|
|
find ${DESTDIR}/usr/include -type f | \
|
1994-07-21 11:33:01 +04:00
|
|
|
xargs chmod a=r
|
|
|
|
find ${DESTDIR}/usr/include -type d | \
|
|
|
|
xargs chmod u=rwx,go=rx
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1996-04-25 04:55:44 +04:00
|
|
|
.include <bsd.prog.mk>
|