Home | History | Annotate | Line # | Download | only in include
Makefile revision 1.62
      1 #	$NetBSD: Makefile,v 1.62 1996/09/29 23:29:16 mrg Exp $
      2 #	@(#)Makefile	5.45.1.1 (Berkeley) 5/6/91
      3 
      4 # Missing: mp.h
      5 
      6 FILES=	a.out.h ar.h assert.h bitstring.h bm.h cpio.h ctype.h db.h dirent.h \
      7 	disktab.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")
     16 FILES+=	dlfcn.h link.h
     17 .endif
     18 
     19 DIRS=	arpa protocols rpc rpcsvc
     20 
     21 NOOBJ=	noobj
     22 
     23 includes: ${SYS_INCLUDE}
     24 
     25 includes:
     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 ${DESTDIR}/usr/include/$$i/$$j; \
     38 		done); \
     39 	done
     40 	chown -R ${BINOWN}:${BINGRP} ${DESTDIR}/usr/include
     41 	find ${DESTDIR}/usr/include -type f | \
     42 		xargs chmod a=r
     43 	find ${DESTDIR}/usr/include -type d | \
     44 		xargs chmod u=rwx,go=rx
     45 
     46 .include <bsd.prog.mk>
     47