Makefile revision 1.67
1#	$NetBSD: Makefile,v 1.67 1997/01/30 01:05:58 thorpej Exp $
2#	@(#)Makefile	5.45.1.1 (Berkeley) 5/6/91
3
4# Missing: mp.h
5
6FILES=	a.out.h ar.h assert.h bitstring.h bm.h cpio.h ctype.h db.h dirent.h \
7	disktab.h dlfcn.h err.h fnmatch.h fstab.h fts.h glob.h grp.h ieeefp.h \
8	iso646.h kvm.h langinfo.h limits.h locale.h malloc.h math.h md4.h \
9	md5.h memory.h mpool.h ndbm.h netdb.h netgroup.h nlist.h nl_types.h \
10	paths.h pwd.h ranlib.h re_comp.h regex.h regexp.h resolv.h rmt.h \
11	search.h setjmp.h sgtty.h signal.h stab.h stddef.h stdio.h stdlib.h \
12	string.h strings.h stringlist.h struct.h sysexits.h tar.h time.h \
13	ttyent.h tzfile.h unistd.h util.h utime.h utmp.h vis.h
14
15DIRS=	arpa protocols rpc rpcsvc
16
17NOOBJ=	noobj
18
19includes: ${SYS_INCLUDE}
20
21includes:
22	@echo installing ${FILES}
23	@-for i in ${FILES}; do \
24		cmp -s $$i ${DESTDIR}/usr/include/$$i || \
25		    ${INSTALL} -c -m 444 $$i ${DESTDIR}/usr/include/$$i; \
26	done
27	@echo installing ${DIRS}
28	@-for i in ${DIRS}; do \
29		${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \
30			${DESTDIR}/usr/include/$$i; \
31		(cd $$i; for j in *.[ih]; do \
32			cmp -s $$j ${DESTDIR}/usr/include/$$i/$$j || \
33			${INSTALL} -c -m 444 $$j \
34			${DESTDIR}/usr/include/$$i/$$j; \
35		done); \
36	done
37	chown -R ${BINOWN}:${BINGRP} ${DESTDIR}/usr/include
38	find ${DESTDIR}/usr/include -type f | \
39		xargs chmod a=r
40	find ${DESTDIR}/usr/include -type d | \
41		xargs chmod u=rwx,go=rx
42
43.include <bsd.prog.mk>
44