Makefile revision 1.23
11.21Smycroft# from: @(#)Makefile 5.45.1.1 (Berkeley) 5/6/91 21.23Smycroft# $Id: Makefile,v 1.23 1993/08/16 00:26:07 mycroft 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.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.19Smycroft err.h fnmatch.h fstab.h fts.h glob.h grp.h kvm.h limits.h locale.h \ 151.19Smycroft math.h 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.17Sderaadt tzfile.h unistd.h utime.h utmp.h varargs.h vis.h malloc.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.20Sbrezak# Change SYS_INCLUDE in bsd.own.mk to "symlinks" if you don't want copies 291.20Sbrezak.if !defined(SYS_INCLUDE) 301.20SbrezakSYS_INCLUDE= copies 311.20Sbrezak.endif 321.1Scgd 331.22Smycroftrealinstall: 341.1Scgd @echo installing ${FILES} 351.1Scgd @-for i in ${FILES}; do \ 361.1Scgd cmp -s $$i ${DESTDIR}/usr/include/$$i || \ 371.18Sderaadt install -c -m 644 $$i ${DESTDIR}/usr/include/$$i; \ 381.1Scgd done 391.1Scgd @echo installing ${DIRS} 401.1Scgd @-for i in ${DIRS}; do \ 411.1Scgd if [ ! -d ${DESTDIR}/usr/include/$$i ]; \ 421.1Scgd then \ 431.1Scgd mkdir ${DESTDIR}/usr/include/$$i; \ 441.1Scgd fi; \ 451.1Scgd (cd $$i; for j in *.[ih]; do \ 461.1Scgd cmp -s $$j ${DESTDIR}/usr/include/$$i/$$j || \ 471.18Sderaadt install -c -m 644 $$j ${DESTDIR}/usr/include/$$i/$$j; \ 481.1Scgd done); \ 491.1Scgd done 501.1Scgd @echo installing ${LFILES} 511.1Scgd @-for i in ${LFILES}; do \ 521.1Scgd rm -f ${DESTDIR}/usr/include/$$i; \ 531.1Scgd ln -s sys/$$i ${DESTDIR}/usr/include/$$i; \ 541.1Scgd done 551.1Scgd @echo installing ${MFILES} 561.1Scgd @-for i in ${MFILES}; do \ 571.1Scgd rm -f ${DESTDIR}/usr/include/$$i; \ 581.1Scgd ln -s machine/$$i ${DESTDIR}/usr/include/$$i; \ 591.1Scgd done 601.13Sproven @chown -R ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include 611.13Sproven @chmod -R a-w ${DESTDIR}/usr/include 621.1Scgd 631.8Scgdbeforeinstall: 641.23Smycroft @install -d -o root -g wheel -m 755 ${DESTDIR}/usr/include 651.8Scgd 661.1Scgdcopies: 671.1Scgd @echo copies: ${LDIRS} 681.1Scgd @-for i in ${LDIRS}; do \ 691.1Scgd rm -rf ${DESTDIR}/usr/include/$$i; \ 701.11Scgd cd ../sys; \ 711.1Scgd tar cf - $$i/*.h | (cd ${DESTDIR}/usr/include; tar xpfB -); \ 721.1Scgd done 731.3Scgd rm -rf ${DESTDIR}/usr/include/machine 741.1Scgd mkdir ${DESTDIR}/usr/include/machine 751.16Scgd cd ../sys/arch/${MACHINE}/include; \ 761.1Scgd tar cf - *.h | (cd ${DESTDIR}/usr/include/machine; tar xpfB -); \ 771.1Scgd 781.1Scgdsymlinks: 791.1Scgd @echo symlinks: ${LDIRS} 801.13Sproven @for i in ${LDIRS}; do \ 811.13Sproven rm -rf ${DESTDIR}/usr/include/$$i; \ 821.13Sproven ln -s /sys/$$i ${DESTDIR}/usr/include/$$i; \ 831.13Sproven done 841.13Sproven rm -rf ${DESTDIR}/usr/include/machine 851.16Scgd ln -s /sys/arch/${MACHINE}/include ${DESTDIR}/usr/include/machine 861.14Sproven 871.14Sproven.include <bsd.prog.mk> 881.23Smycroft 891.23Smycroftrealinstall: ${SYS_INCLUDE} 90