Deleted Added
full compact
Makefile (3211) Makefile (3214)
1# From: @(#)Makefile 8.2 (Berkeley) 1/4/94
2# $Id: Makefile,v 1.13 1994/09/15 20:07:18 bde 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#

--- 24 unchanged lines hidden (view full) ---

33NOOBJ= noobj
34
35# Define SHARED to indicate whether you want symbolic links to the system
36# source (``symlinks''), or a separate copy (``copies''); (latter useful
37# in environments where it's not possible to keep /sys publicly readable)
38# SHARED= copies
39SHARED?= symlinks
40
1# From: @(#)Makefile 8.2 (Berkeley) 1/4/94
2# $Id: Makefile,v 1.13 1994/09/15 20:07:18 bde 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#

--- 24 unchanged lines hidden (view full) ---

33NOOBJ= noobj
34
35# Define SHARED to indicate whether you want symbolic links to the system
36# source (``symlinks''), or a separate copy (``copies''); (latter useful
37# in environments where it's not possible to keep /sys publicly readable)
38# SHARED= copies
39SHARED?= symlinks
40
41OSREL = ${DESTDIR}/usr/include/osreldate.h
41beforeinstall: ${SHARED}
42 @${ECHO} installing ${FILES}
43 @-for i in ${FILES}; do \
44 cmp -s $$i ${DESTDIR}/usr/include/$$i > /dev/null 2>&1 || \
45 install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
46 ${DESTDIR}/usr/include/$$i; \
47 done
48 @${ECHO} creating osreldate.h
42beforeinstall: ${SHARED}
43 @${ECHO} installing ${FILES}
44 @-for i in ${FILES}; do \
45 cmp -s $$i ${DESTDIR}/usr/include/$$i > /dev/null 2>&1 || \
46 install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
47 ${DESTDIR}/usr/include/$$i; \
48 done
49 @${ECHO} creating osreldate.h
49 @rm -f ${DESTDIR}/usr/include/osreldate.h
50 @echo \#'undef __FreeBSD_version' > ${DESTDIR}/usr/include/osreldate.h
50 @echo \#'undef __FreeBSD_version' > ${OSREL}.new
51 @echo \#'define __FreeBSD_version '`sysctl -n kern.osreldate` \
51 @echo \#'define __FreeBSD_version '`sysctl -n kern.osreldate` \
52 >> ${DESTDIR}/usr/include/osreldate.h
53 @chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/osreldate.h
54 @chmod 444 ${DESTDIR}/usr/include/osreldate.h
52 >> ${OSREL}.new
53 @if cmp -s ${OSREL} ${OSREL}.new >/dev/null 2>&1 ; then \
54 rm -f ${OSREL}.new ; else \
55 mv -f ${OSREL}.new ${OSREL} ; fi
56 @chown ${BINOWN}.${BINGRP} ${OSREL}
57 @chmod 444 ${OSREL}
55 @${ECHO} installing ${DIRS}
56 @-for i in ${DIRS}; do \
57 if [ ! -d ${DESTDIR}/usr/include/$$i ]; \
58 then \
59 mkdir ${DESTDIR}/usr/include/$$i; \
60 fi; \
61 chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \
62 chmod 755 ${DESTDIR}/usr/include/$$i; \

--- 51 unchanged lines hidden ---
58 @${ECHO} installing ${DIRS}
59 @-for i in ${DIRS}; do \
60 if [ ! -d ${DESTDIR}/usr/include/$$i ]; \
61 then \
62 mkdir ${DESTDIR}/usr/include/$$i; \
63 fi; \
64 chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \
65 chmod 755 ${DESTDIR}/usr/include/$$i; \

--- 51 unchanged lines hidden ---