Pointed out by sthen@
While make build indeed takes care of running make install in share/mk,
running make obj first would error out when encountering the unknown
BUILD_LLDB variable. I can wait a few days before committing this again.
-# $OpenBSD: Makefile,v 1.22 2022/07/12 21:10:26 jca Exp $
+# $OpenBSD: Makefile,v 1.23 2022/07/13 10:20:18 jca Exp $
.include <bsd.own.mk>
SUBDIR+=lld
-.if ${BUILD_LLDB:L} == "yes" || make(obj)
SUBDIR+=lldb-tblgen
SUBDIR+=include/lldb/Commands
SUBDIR+=include/lldb/Core
SUBDIR+=lldb
SUBDIR+=lldb-server
-.endif
SUBDIR+=include/llvm-objcopy
SUBDIR+=llvm-objcopy
SUBDIR+=llvm-profdata
-.if ${AR_VERSION:L} == "llvm" || make(obj)
+.if ${AR_VERSION:L} == "llvm"
SUBDIR+=libLLVMDlltoolDriver
SUBDIR+=libLLVMLibDriver
SUBDIR+=llvm-ar
-# $OpenBSD: Makefile,v 1.7 2022/07/12 21:06:04 jca Exp $
+# $OpenBSD: Makefile,v 1.8 2022/07/13 10:20:18 jca Exp $
.include <bsd.own.mk>
+.if (${MACHINE} == "arm64") || (${MACHINE} == "amd64")
PROG= lldb-server
+.else
+NOPROG= lldb-server
+.endif
+
BINDIR= /usr/bin
NOMAN=
-# $OpenBSD: Makefile,v 1.12 2022/07/12 21:06:04 jca Exp $
+# $OpenBSD: Makefile,v 1.13 2022/07/13 10:20:18 jca Exp $
.include <bsd.own.mk>
+.if (${MACHINE} == "arm64") || (${MACHINE} == "amd64")
PROG= lldb
+.else
+NOPROG= lldb
+.endif
+
BINDIR= /usr/bin
LIBEXECDIR=/usr/libexec