Makefile revision 1.14
11.1Scgd# @(#)Makefile 5.45.1.1 (Berkeley) 5/6/91 21.1Scgd# 31.1Scgd# Doing a make install builds /usr/include 41.1Scgd# 51.1Scgd# The ``rm -rf''s used below are safe because rm doesn't follow symbolic 61.1Scgd# links. 71.1Scgd# 81.1Scgd 91.6ScgdSUBDIR= rpcsvc 101.6Scgd 111.1Scgd# Missing: mp.h 121.1Scgd 131.1ScgdFILES= a.out.h ar.h assert.h bitstring.h ctype.h db.h dirent.h disktab.h \ 141.12Smycroft err.h fstab.h fts.h glob.h grp.h kvm.h limits.h locale.h math.h \ 151.12Smycroft memory.h mpool.h ndbm.h netdb.h nlist.h paths.h pwd.h ranlib.h \ 161.12Smycroft regexp.h resolv.h setjmp.h sgtty.h stab.h stdarg.h stddef.h stdio.h \ 171.1Scgd stdlib.h string.h strings.h struct.h sysexits.h time.h ttyent.h \ 181.1Scgd tzfile.h unistd.h utime.h utmp.h varargs.h vis.h 191.1Scgd 201.1ScgdMFILES= float.h frame.h 211.1ScgdLFILES= errno.h fcntl.h signal.h syslog.h termios.h 221.1Scgd 231.14SprovenDIRS= arpa protocols rpc 241.9ScgdLDIRS= net netinet netccitt netiso netns nfs sys ufs vm 251.1Scgd 261.1ScgdNOOBJ= noobj 271.1Scgd 281.1Scgd# Define SHARED to indicate whether you want symbolic links to the system 291.1Scgd# source (``symlinks''), or a separate copy (``copies''); (latter useful 301.1Scgd# in environments where it's not possible to keep /sys publicly readable) 311.2ScgdSHARED= copies 321.2Scgd#SHARED= symlinks 331.1Scgd 341.8Scgdinstall: beforeinstall _PROGSUBDIR ${SHARED} 351.1Scgd @echo installing ${FILES} 361.1Scgd @-for i in ${FILES}; do \ 371.1Scgd cmp -s $$i ${DESTDIR}/usr/include/$$i || \ 381.13Sproven install -c $$i ${DESTDIR}/usr/include/$$i; \ 391.1Scgd done 401.1Scgd @echo installing ${DIRS} 411.1Scgd @-for i in ${DIRS}; do \ 421.1Scgd if [ ! -d ${DESTDIR}/usr/include/$$i ]; \ 431.1Scgd then \ 441.1Scgd mkdir ${DESTDIR}/usr/include/$$i; \ 451.1Scgd fi; \ 461.1Scgd (cd $$i; for j in *.[ih]; do \ 471.1Scgd cmp -s $$j ${DESTDIR}/usr/include/$$i/$$j || \ 481.14Sproven install -c $$j ${DESTDIR}/usr/include/$$i/$$j; \ 491.1Scgd done); \ 501.1Scgd done 511.1Scgd @echo installing ${LFILES} 521.1Scgd @-for i in ${LFILES}; do \ 531.1Scgd rm -f ${DESTDIR}/usr/include/$$i; \ 541.1Scgd ln -s sys/$$i ${DESTDIR}/usr/include/$$i; \ 551.1Scgd done 561.1Scgd @echo installing ${MFILES} 571.1Scgd @-for i in ${MFILES}; do \ 581.1Scgd rm -f ${DESTDIR}/usr/include/$$i; \ 591.1Scgd ln -s machine/$$i ${DESTDIR}/usr/include/$$i; \ 601.1Scgd done 611.13Sproven @chown -R ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include 621.13Sproven @chmod -R a-w ${DESTDIR}/usr/include 631.1Scgd 641.8Scgdbeforeinstall: 651.8Scgd @if [ ! -d ${DESTDIR}/usr/include ]; then \ 661.8Scgd /bin/rm -f ${DESTDIR}/usr/include ; \ 671.8Scgd mkdir -p ${DESTDIR}/usr/include ; \ 681.8Scgd else \ 691.8Scgd true ; \ 701.8Scgd fi 711.8Scgd 721.1Scgdcopies: 731.1Scgd @echo copies: ${LDIRS} 741.1Scgd @-for i in ${LDIRS}; do \ 751.1Scgd rm -rf ${DESTDIR}/usr/include/$$i; \ 761.11Scgd cd ../sys; \ 771.1Scgd tar cf - $$i/*.h | (cd ${DESTDIR}/usr/include; tar xpfB -); \ 781.1Scgd done 791.3Scgd rm -rf ${DESTDIR}/usr/include/machine 801.1Scgd mkdir ${DESTDIR}/usr/include/machine 811.11Scgd cd ../sys/${MACHINE}/include; \ 821.1Scgd tar cf - *.h | (cd ${DESTDIR}/usr/include/machine; tar xpfB -); \ 831.1Scgd 841.1Scgdsymlinks: 851.1Scgd @echo symlinks: ${LDIRS} 861.13Sproven @for i in ${LDIRS}; do \ 871.13Sproven rm -rf ${DESTDIR}/usr/include/$$i; \ 881.13Sproven ln -s /sys/$$i ${DESTDIR}/usr/include/$$i; \ 891.13Sproven done 901.13Sproven rm -rf ${DESTDIR}/usr/include/machine 911.13Sproven ln -s /sys/${MACHINE}/include ${DESTDIR}/usr/include/machine 921.14Sproven 931.14Sproven.include <bsd.prog.mk> 941.14Sprovende ${DESTDIR}/usr/include/machine 951.13Sproven 961.13Sproven.include <bsd.prog.mk> 971.13Sprovennks: ${LDIRS} 981.1Scgd @for i in ${LDIRS}; do \ 991.1Scgd rm -rf ${DESTDIR}/usr/include/$$i; \ 1001.1Scgd ln -s /sys/$$i ${DESTDIR}/usr/include/$$i; \ 1011.1Scgd chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \ 1021.1Scgd done 1031.3Scgd rm -rf ${DESTDIR}/usr/include/machine 1041.1Scgd ln -s /sys/${MACHINE}/include ${DESTDIR}/usr/include/machine 1051.1Scgd chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/machine 1061.1Scgd 1071.1Scgd.include <bsd.prog.mk> 108