Makefile revision 1.64
1# $NetBSD: Makefile,v 1.64 1996/12/18 22:18:39 cgd 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 \ 9 memory.h mpool.h ndbm.h netdb.h netgroup.h nlist.h nl_types.h paths.h \ 10 pwd.h ranlib.h re_comp.h regex.h regexp.h resolv.h rmt.h search.h \ 11 setjmp.h sgtty.h signal.h stab.h stddef.h stdio.h stdlib.h string.h \ 12 strings.h struct.h sysexits.h tar.h time.h ttyent.h tzfile.h unistd.h \ 13 util.h utime.h utmp.h vis.h 14 15.if (${MACHINE_ARCH} != "alpha") 16FILES+= link.h 17.endif 18 19DIRS= arpa protocols rpc rpcsvc 20 21NOOBJ= noobj 22 23includes: ${SYS_INCLUDE} 24 25includes: 26 @echo installing ${FILES} 27 @-for i in ${FILES}; do \ 28 cmp -s $$i ${DESTDIR}/usr/include/$$i || \ 29 ${INSTALL} -c -m 444 $$i ${DESTDIR}/usr/include/$$i; \ 30 done 31 @echo installing ${DIRS} 32 @-for i in ${DIRS}; do \ 33 ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \ 34 ${DESTDIR}/usr/include/$$i; \ 35 (cd $$i; for j in *.[ih]; do \ 36 cmp -s $$j ${DESTDIR}/usr/include/$$i/$$j || \ 37 ${INSTALL} -c -m 444 $$j \ 38 ${DESTDIR}/usr/include/$$i/$$j; \ 39 done); \ 40 done 41 chown -R ${BINOWN}:${BINGRP} ${DESTDIR}/usr/include 42 find ${DESTDIR}/usr/include -type f | \ 43 xargs chmod a=r 44 find ${DESTDIR}/usr/include -type d | \ 45 xargs chmod u=rwx,go=rx 46 47.include <bsd.prog.mk> 48