Makefile (9934) | Makefile (9970) |
---|---|
1# From: @(#)Makefile 8.2 (Berkeley) 1/4/94 | 1# From: @(#)Makefile 8.2 (Berkeley) 1/4/94 |
2# $Id: Makefile,v 1.27 1995/07/13 10:04:11 rgrimes Exp $ | 2# $Id: Makefile,v 1.28 1995/08/05 20:24:32 wollman Exp $ |
3# 4# Doing a make install builds /usr/include 5# 6# The ``rm -rf''s used below are safe because rm doesn't follow symbolic 7# links. 8# 9all depend lint tags: 10 --- 27 unchanged lines hidden (view full) --- 38SHARED?= symlinks 39 40OSREL = ${DESTDIR}/usr/include/osreldate.h 41beforeinstall: ${SHARED} 42 @${ECHO} installing ${FILES} 43 @cd ${.CURDIR}; \ 44 for i in ${FILES}; do \ 45 cmp -s $$i ${DESTDIR}/usr/include/$$i || \ | 3# 4# Doing a make install builds /usr/include 5# 6# The ``rm -rf''s used below are safe because rm doesn't follow symbolic 7# links. 8# 9all depend lint tags: 10 --- 27 unchanged lines hidden (view full) --- 38SHARED?= symlinks 39 40OSREL = ${DESTDIR}/usr/include/osreldate.h 41beforeinstall: ${SHARED} 42 @${ECHO} installing ${FILES} 43 @cd ${.CURDIR}; \ 44 for i in ${FILES}; do \ 45 cmp -s $$i ${DESTDIR}/usr/include/$$i || \ |
46 install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \ | 46 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \ |
47 ${DESTDIR}/usr/include/$$i; \ 48 done 49.if exists (${.CURDIR}/../sys/conf/newvers.sh) 50 @${ECHO} creating osreldate.h from newvers.sh 51 @echo \#'undef __FreeBSD_version' > ${OSREL}.new 52 . ${.CURDIR}/../sys/conf/newvers.sh ; \ 53 echo \#'define __FreeBSD_version' $$RELDATE >> ${OSREL}.new 54.else --- 12 unchanged lines hidden (view full) --- 67 if [ ! -d ${DESTDIR}/usr/include/$$i ]; \ 68 then \ 69 mkdir ${DESTDIR}/usr/include/$$i; \ 70 fi; \ 71 chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \ 72 chmod 755 ${DESTDIR}/usr/include/$$i; \ 73 (cd ${.CURDIR}/$$i; for j in *.[ih]; do \ 74 cmp -s $$j ${DESTDIR}/usr/include/$$i/$$j || \ | 47 ${DESTDIR}/usr/include/$$i; \ 48 done 49.if exists (${.CURDIR}/../sys/conf/newvers.sh) 50 @${ECHO} creating osreldate.h from newvers.sh 51 @echo \#'undef __FreeBSD_version' > ${OSREL}.new 52 . ${.CURDIR}/../sys/conf/newvers.sh ; \ 53 echo \#'define __FreeBSD_version' $$RELDATE >> ${OSREL}.new 54.else --- 12 unchanged lines hidden (view full) --- 67 if [ ! -d ${DESTDIR}/usr/include/$$i ]; \ 68 then \ 69 mkdir ${DESTDIR}/usr/include/$$i; \ 70 fi; \ 71 chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \ 72 chmod 755 ${DESTDIR}/usr/include/$$i; \ 73 (cd ${.CURDIR}/$$i; for j in *.[ih]; do \ 74 cmp -s $$j ${DESTDIR}/usr/include/$$i/$$j || \ |
75 install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$j \ | 75 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 $$j \ |
76 ${DESTDIR}/usr/include/$$i/$$j; \ 77 done); \ 78 done 79 @${ECHO} installing ${LFILES} 80 @-for i in ${LFILES}; do \ 81 rm -f ${DESTDIR}/usr/include/$$i; \ 82 ln -s sys/$$i ${DESTDIR}/usr/include/$$i; \ 83 chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \ --- 41 unchanged lines hidden --- | 76 ${DESTDIR}/usr/include/$$i/$$j; \ 77 done); \ 78 done 79 @${ECHO} installing ${LFILES} 80 @-for i in ${LFILES}; do \ 81 rm -f ${DESTDIR}/usr/include/$$i; \ 82 ln -s sys/$$i ${DESTDIR}/usr/include/$$i; \ 83 chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \ --- 41 unchanged lines hidden --- |