summaryrefslogtreecommitdiffstats
path: root/include/Makefile
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-04-03 04:53:23 +0000
committerimp <imp@FreeBSD.org>2005-04-03 04:53:23 +0000
commitb115dca3b21275df7c346e1ad344e8aaddcd81fa (patch)
tree2c16c9bbfc257ee01272a5995fd177c6d4c86c80 /include/Makefile
parent3c83d974a6773c11688c2c2a5e1e7723b4268fc9 (diff)
downloadFreeBSD-src-b115dca3b21275df7c346e1ad344e8aaddcd81fa.zip
FreeBSD-src-b115dca3b21275df7c346e1ad344e8aaddcd81fa.tar.gz
Make sure that $_MARCH and friends exist
Submitted by: nyan@
Diffstat (limited to 'include/Makefile')
-rw-r--r--include/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/Makefile b/include/Makefile
index 215f1b7..448fb7d 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -162,10 +162,14 @@ copies:
${DESTDIR}${INCLUDEDIR}/machine/pc
.endif
.if defined(_MARCH)
+ ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \
+ ${DESTDIR}${INCLUDEDIR}/${_MARCH}; \
cd ${.CURDIR}/../sys/${_MARCH}/include; \
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \
${DESTDIR}${INCLUDEDIR}/${_MARCH}
.if exists(${.CURDIR}/../sys/${_MARCH}/include/pc)
+ ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \
+ ${DESTDIR}${INCLUDEDIR}/${_MARCH}/pc; \
cd ${.CURDIR}/../sys/${_MARCH}/include/pc; \
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \
${DESTDIR}${INCLUDEDIR}/${_MARCH}/pc
@@ -240,12 +244,16 @@ symlinks:
done
.endif
.if defined(_MARCH)
+ ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \
+ ${DESTDIR}${INCLUDEDIR}/${_MARCH}; \
cd ${.CURDIR}/../sys/${_MARCH}/include; \
for h in *.h; do \
ln -fs ../../../sys/${_MARCH}/include/$$h \
${DESTDIR}${INCLUDEDIR}/${_MARCH}; \
done
.if exists(${.CURDIR}/../sys/${_MARCH}/include/pc)
+ ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \
+ ${DESTDIR}${INCLUDEDIR}/${_MARCH}/pc; \
cd ${.CURDIR}/../sys/${_MARCH}/include/pc; \
for h in *.h; do \
ln -fs ../../../../sys/${_MARCH}/include/pc/$$h \
OpenPOWER on IntegriCloud