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