# machine-dependent mach sources
-.if ${MACHINE_ARCH} == armv6
-ARCHDIR = arm
-.else
-ARCHDIR = ${MACHINE_ARCH}
-.endif
+ARCHDIR = ${MACHINE_ARCH:C/^armv.*$/arm/}
.if exists(${.CURDIR}/mach/${ARCHDIR}/Makefile.inc)
.include "${.CURDIR}/mach/${ARCHDIR}/Makefile.inc"
.endif