aboutsummaryrefslogtreecommitdiff
path: root/include/Makefile
diff options
context:
space:
mode:
authorMike Karels <karels@FreeBSD.org>2023-07-25 23:59:26 +0000
committerMike Karels <karels@FreeBSD.org>2023-07-25 23:59:26 +0000
commitd5d97bed4ab6bb63e97c8ff67b5b94ae37cd24fc (patch)
tree85e3dccc7d4d6719c866996135a58b5e238ba2da /include/Makefile
parentf1d5183124d3e18d410ded61e45adb9a23b23c83 (diff)
Diffstat (limited to 'include/Makefile')
-rw-r--r--include/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/Makefile b/include/Makefile
index 922337a87772..ce8c49d3a7cd 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -9,7 +9,12 @@ PACKAGE=runtime
CLEANFILES= osreldate.h version
SUBDIR= arpa protocols rpcsvc rpc xlocale
.if ${MACHINE_CPUARCH} == "amd64"
-SUBDIR+= i386
+SUBDIR+= i386
+INCLUDE_SUBDIRS+= i386
+.endif
+.if ${MACHINE_CPUARCH} == "aarch64"
+SUBDIR+= arm
+INCLUDE_SUBDIRS+= arm
.endif
SUBDIR_PARALLEL=
INCS= a.out.h ar.h assert.h bitstring.h byteswap.h \
@@ -353,10 +358,10 @@ compat:
mtree -deU ${NO_ROOT:D-W} ${MTREE_FOLLOWS_SYMLINKS} \
-f ${SRCTOP}/etc/mtree/BSD.include.dist \
-p ${SDESTDIR}${INCLUDEDIR} > /dev/null
-.if ${MACHINE_CPUARCH} == "amd64"
+.for d in ${INCLUDE_SUBDIRS}
${INSTALL} -d ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 755 \
- ${SDESTDIR}${INCLUDEDIR}/i386
-.endif
+ ${SDESTDIR}${INCLUDEDIR}/${d}
+.endfor
copies: .PHONY .META
cd ${SDESTDIR}${INCLUDEDIR}; find ${LDIRS} ${LSUBDIRS} ${LSUBSUBDIRS} crypto \