summaryrefslogtreecommitdiffstats
path: root/include/Makefile
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-07-13 09:57:34 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-07-13 09:57:34 +0000
commita3e42e9be9ec4656c339b9dd54a89431ca810d9b (patch)
tree7165ac5830cc1a485f9b873e5c5365cc9244e8e1 /include/Makefile
parentb381ad93a8b35e9126323f49a1ee194c0cb6ed27 (diff)
downloadFreeBSD-src-a3e42e9be9ec4656c339b9dd54a89431ca810d9b.zip
FreeBSD-src-a3e42e9be9ec4656c339b9dd54a89431ca810d9b.tar.gz
Add a sprinkling of ${.CURDIR} to some paths so that this works
in the presence of an obj dir (though NOOBJ is set now, that shall change in the near future.)
Diffstat (limited to 'include/Makefile')
-rw-r--r--include/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/Makefile b/include/Makefile
index da1e06b..edde8c3 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -1,5 +1,5 @@
# From: @(#)Makefile 8.2 (Berkeley) 1/4/94
-# $Id: Makefile,v 1.24 1995/03/26 10:12:51 jkh Exp $
+# $Id: Makefile,v 1.25 1995/03/30 12:47:55 jkh Exp $
#
# Doing a make install builds /usr/include
#
@@ -41,7 +41,8 @@ SHARED?= symlinks
OSREL = ${DESTDIR}/usr/include/osreldate.h
beforeinstall: ${SHARED}
@${ECHO} installing ${FILES}
- @-for i in ${FILES}; do \
+ @cd ${.CURDIR}; \
+ for i in ${FILES}; do \
cmp -s $$i ${DESTDIR}/usr/include/$$i || \
install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
${DESTDIR}/usr/include/$$i; \
@@ -71,7 +72,7 @@ beforeinstall: ${SHARED}
fi; \
chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \
chmod 755 ${DESTDIR}/usr/include/$$i; \
- (cd $$i; for j in *.[ih]; do \
+ (cd ${.CURDIR}/$$i; for j in *.[ih]; do \
cmp -s $$j ${DESTDIR}/usr/include/$$i/$$j || \
install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$j \
${DESTDIR}/usr/include/$$i/$$j; \
@@ -97,7 +98,7 @@ copies:
@-for i in ${LDIRS} ${UDIRS}; do \
${ECHO} ${SHARED} $$i; \
rm -rf ${DESTDIR}/usr/include/$$i; \
- cd ../sys; \
+ cd ${.CURDIR}/../sys; \
tar cf - $$i/*.h | \
(cd ${DESTDIR}/usr/include; tar xpfB -); \
chown -R ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i;\
@@ -106,7 +107,7 @@ copies:
done
rm -rf ${DESTDIR}/usr/include/machine
mkdir ${DESTDIR}/usr/include/machine
- cd ../sys/${MACHINE}/include && \
+ cd ${.CURDIR}/../sys/${MACHINE}/include && \
tar cf - *.h | (cd ${DESTDIR}/usr/include/machine; tar xpfB -);
chown -R ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/machine;
chmod -R 444 ${DESTDIR}/usr/include/machine;
OpenPOWER on IntegriCloud