From 15eb6586e7505c9459b1fc2216b5b561297111ba Mon Sep 17 00:00:00 2001 From: robert Date: Sun, 12 Nov 2023 21:17:48 +0000 Subject: [PATCH] append ExtensionDependencies.inc to CLEANFILES only if .OBJDIR != .CURDIR --- gnu/usr.bin/clang/llvm-config/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gnu/usr.bin/clang/llvm-config/Makefile b/gnu/usr.bin/clang/llvm-config/Makefile index f1a19cd8a32..1ff3cb5424c 100644 --- a/gnu/usr.bin/clang/llvm-config/Makefile +++ b/gnu/usr.bin/clang/llvm-config/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.8 2023/11/11 18:35:40 robert Exp $ +# $OpenBSD: Makefile,v 1.9 2023/11/12 21:17:48 robert Exp $ PROG= llvm-config BINDIR= /usr/bin @@ -39,7 +39,10 @@ reconf: rm -rf ${.CURDIR}/CMakeGen .endfor -CLEANFILES+= BuildVariables.inc LibraryDependencies.inc ExtensionDependencies.inc +CLEANFILES+= BuildVariables.inc LibraryDependencies.inc +.if ${.CURDIR} != ${.OBJDIR} +CLEANFILES+= ExtensionDependencies.inc +.endif .PATH: ${.CURDIR}/../../../llvm/llvm/tools/llvm-config -- 2.20.1