summaryrefslogtreecommitdiffstats
path: root/include/Makefile
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1994-11-01 09:19:50 +0000
committerpst <pst@FreeBSD.org>1994-11-01 09:19:50 +0000
commit8a9b63d2771180b6ef1c3e66ad93bf3c39a6381e (patch)
tree21295e4319c3edd470edad35b18a5dad48991679 /include/Makefile
parent29b3feea69b80384007750bcf541e31e7692955f (diff)
downloadFreeBSD-src-8a9b63d2771180b6ef1c3e66ad93bf3c39a6381e.zip
FreeBSD-src-8a9b63d2771180b6ef1c3e66ad93bf3c39a6381e.tar.gz
Clean up install rules
Diffstat (limited to 'include/Makefile')
-rw-r--r--include/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/Makefile b/include/Makefile
index b29124f..a117cc7 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -1,5 +1,5 @@
# From: @(#)Makefile 8.2 (Berkeley) 1/4/94
-# $Id: Makefile,v 1.17 1994/10/26 18:35:39 ljo Exp $
+# $Id: Makefile,v 1.18 1994/10/31 00:42:20 ats Exp $
#
# Doing a make install builds /usr/include
#
@@ -42,7 +42,7 @@ OSREL = ${DESTDIR}/usr/include/osreldate.h
beforeinstall: ${SHARED}
@${ECHO} installing ${FILES}
@-for i in ${FILES}; do \
- cmp -s $$i ${DESTDIR}/usr/include/$$i > /dev/null 2>&1 || \
+ cmp -s $$i ${DESTDIR}/usr/include/$$i || \
install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
${DESTDIR}/usr/include/$$i; \
done
@@ -50,7 +50,7 @@ beforeinstall: ${SHARED}
@echo \#'undef __FreeBSD_version' > ${OSREL}.new
@echo \#'define __FreeBSD_version '`sysctl -n kern.osreldate` \
>> ${OSREL}.new
- @if cmp -s ${OSREL} ${OSREL}.new >/dev/null 2>&1 ; then \
+ @if cmp -s ${OSREL} ${OSREL}.new ; then \
rm -f ${OSREL}.new ; else \
mv -f ${OSREL}.new ${OSREL} ; fi
@chown ${BINOWN}.${BINGRP} ${OSREL}
@@ -64,8 +64,7 @@ beforeinstall: ${SHARED}
chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \
chmod 755 ${DESTDIR}/usr/include/$$i; \
(cd $$i; for j in *.[ih]; do \
- cmp -s $$j ${DESTDIR}/usr/include/$$i/$$j > \
- /dev/null 2>&1 || \
+ cmp -s $$j ${DESTDIR}/usr/include/$$i/$$j || \
install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$j \
${DESTDIR}/usr/include/$$i/$$j; \
done); \
OpenPOWER on IntegriCloud