Makefile revision 1.32
11.21Smycroft# from: @(#)Makefile 5.45.1.1 (Berkeley) 5/6/91 21.32Scgd# $Id: Makefile,v 1.32 1994/01/12 22:56:29 cgd Exp $ 31.21Smycroft 41.1Scgd# Doing a make install builds /usr/include 51.1Scgd# 61.1Scgd# The ``rm -rf''s used below are safe because rm doesn't follow symbolic 71.1Scgd# links. 81.6Scgd 91.1Scgd# Missing: mp.h 101.1Scgd 111.1ScgdFILES= a.out.h ar.h assert.h bitstring.h ctype.h db.h dirent.h disktab.h \ 121.19Smycroft err.h fnmatch.h fstab.h fts.h glob.h grp.h kvm.h limits.h locale.h \ 131.19Smycroft math.h memory.h mpool.h ndbm.h netdb.h nlist.h paths.h pwd.h ranlib.h \ 141.32Scgd regex.h regexp.h resolv.h \ 151.32Scgd search.h setjmp.h sgtty.h stab.h stdarg.h stddef.h \ 161.28Sjtc stdio.h stdlib.h string.h strings.h struct.h sysexits.h time.h \ 171.28Sjtc ttyent.h tzfile.h unistd.h utime.h utmp.h varargs.h vis.h malloc.h \ 181.28Sjtc link.h 191.1Scgd 201.1ScgdMFILES= float.h frame.h 211.1ScgdLFILES= errno.h fcntl.h signal.h syslog.h termios.h 221.1Scgd 231.26ScgdDIRS= arpa protocols rpc rpcsvc 241.30ScgdLDIRS= dev net netinet netccitt netiso netns nfs sys ufs vm 251.1Scgd 261.1ScgdNOOBJ= noobj 271.1Scgd 281.20Sbrezak# Change SYS_INCLUDE in bsd.own.mk to "symlinks" if you don't want copies 291.31Scgd.include <bsd.own.mk> 301.31ScgdSYS_INCLUDE?= copies 311.1Scgd 321.22Smycroftrealinstall: 331.1Scgd @echo installing ${FILES} 341.1Scgd @-for i in ${FILES}; do \ 351.1Scgd cmp -s $$i ${DESTDIR}/usr/include/$$i || \ 361.18Sderaadt install -c -m 644 $$i ${DESTDIR}/usr/include/$$i; \ 371.1Scgd done 381.1Scgd @echo installing ${DIRS} 391.1Scgd @-for i in ${DIRS}; do \ 401.1Scgd if [ ! -d ${DESTDIR}/usr/include/$$i ]; \ 411.1Scgd then \ 421.1Scgd mkdir ${DESTDIR}/usr/include/$$i; \ 431.1Scgd fi; \ 441.1Scgd (cd $$i; for j in *.[ih]; do \ 451.1Scgd cmp -s $$j ${DESTDIR}/usr/include/$$i/$$j || \ 461.18Sderaadt install -c -m 644 $$j ${DESTDIR}/usr/include/$$i/$$j; \ 471.1Scgd done); \ 481.1Scgd done 491.1Scgd @echo installing ${LFILES} 501.1Scgd @-for i in ${LFILES}; do \ 511.1Scgd rm -f ${DESTDIR}/usr/include/$$i; \ 521.1Scgd ln -s sys/$$i ${DESTDIR}/usr/include/$$i; \ 531.1Scgd done 541.1Scgd @echo installing ${MFILES} 551.1Scgd @-for i in ${MFILES}; do \ 561.1Scgd rm -f ${DESTDIR}/usr/include/$$i; \ 571.1Scgd ln -s machine/$$i ${DESTDIR}/usr/include/$$i; \ 581.1Scgd done 591.24Sjtc @chown -R ${BINOWN}:${BINGRP} ${DESTDIR}/usr/include 601.13Sproven @chmod -R a-w ${DESTDIR}/usr/include 611.1Scgd 621.8Scgdbeforeinstall: 631.23Smycroft @install -d -o root -g wheel -m 755 ${DESTDIR}/usr/include 641.8Scgd 651.1Scgdcopies: 661.1Scgd @echo copies: ${LDIRS} 671.1Scgd @-for i in ${LDIRS}; do \ 681.1Scgd rm -rf ${DESTDIR}/usr/include/$$i; \ 691.11Scgd cd ../sys; \ 701.1Scgd tar cf - $$i/*.h | (cd ${DESTDIR}/usr/include; tar xpfB -); \ 711.1Scgd done 721.3Scgd rm -rf ${DESTDIR}/usr/include/machine 731.1Scgd mkdir ${DESTDIR}/usr/include/machine 741.16Scgd cd ../sys/arch/${MACHINE}/include; \ 751.31Scgd tar cf - *.h | (cd ${DESTDIR}/usr/include/machine; tar xpfB -); 761.31Scgd rm -rf ${DESTDIR}/usr/include/${MACHINE_ARCH} 771.31Scgd if test ${MACHINE} != ${MACHINE_ARCH} ; then \ 781.31Scgd mkdir ${DESTDIR}/usr/include/${MACHINE_ARCH} ; \ 791.31Scgd cd ../sys/arch/${MACHINE_ARCH}/include ; \ 801.31Scgd tar cf - *.h | \ 811.31Scgd (cd ${DESTDIR}/usr/include/${MACHINE_ARCH} ; tar xpfB -); \ 821.31Scgd else \ 831.31Scgd ln -s machine ${DESTDIR}/usr/include/${MACHINE_ARCH} ; \ 841.31Scgd fi 851.1Scgd 861.1Scgdsymlinks: 871.1Scgd @echo symlinks: ${LDIRS} 881.13Sproven @for i in ${LDIRS}; do \ 891.13Sproven rm -rf ${DESTDIR}/usr/include/$$i; \ 901.13Sproven ln -s /sys/$$i ${DESTDIR}/usr/include/$$i; \ 911.13Sproven done 921.13Sproven rm -rf ${DESTDIR}/usr/include/machine 931.16Scgd ln -s /sys/arch/${MACHINE}/include ${DESTDIR}/usr/include/machine 941.31Scgd rm -rf ${DESTDIR}/usr/include/${MACHINE_ARCH} 951.31Scgd if test ${MACHINE} != ${MACHINE_ARCH} ; then \ 961.31Scgd ln -s /sys/arch/${MACHINE_ARCH}/include \ 971.31Scgd ${DESTDIR}/usr/include/${MACHINE_ARCH} ; \ 981.31Scgd else \ 991.31Scgd ln -s machine ${DESTDIR}/usr/include/${MACHINE_ARCH} ; \ 1001.31Scgd fi 1011.14Sproven 1021.14Sproven.include <bsd.prog.mk> 1031.23Smycroft 1041.23Smycroftrealinstall: ${SYS_INCLUDE} 105