aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2005-04-03 04:53:23 +0000
committerWarner Losh <imp@FreeBSD.org>2005-04-03 04:53:23 +0000
commitdfd569ede547534967464ae0a7cc81b46cf1e426 (patch)
tree2c16c9bbfc257ee01272a5995fd177c6d4c86c80 /include
parentcfaacd7f0ff88e2d78badd6d9cc689ce236c6aa2 (diff)
downloadsrc-dfd569ede547534967464ae0a7cc81b46cf1e426.tar.gz
src-dfd569ede547534967464ae0a7cc81b46cf1e426.zip
Make sure that $_MARCH and friends exist
Submitted by: nyan@
Notes
Notes: svn path=/head/; revision=144561
Diffstat (limited to 'include')
-rw-r--r--include/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/Makefile b/include/Makefile
index 215f1b70c035..448fb7dd208b 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 \