Module Name: src Committed By: rillig Date: Wed Mar 27 05:43:38 UTC 2024
Modified Files: src/tools: Makefile Log Message: tools/Makefile: clean up TOOLDIR validation At the point where tools/Makefile is loaded, TOOLDIR doesn't have to exist yet, it will be created later. Remove the redundant quotes from the .error messages. To generate a diff of this commit: cvs rdiff -u -r1.216 -r1.217 src/tools/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tools/Makefile diff -u src/tools/Makefile:1.216 src/tools/Makefile:1.217 --- src/tools/Makefile:1.216 Fri Feb 23 05:34:41 2024 +++ src/tools/Makefile Wed Mar 27 05:43:38 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.216 2024/02/23 05:34:41 mrg Exp $ +# $NetBSD: Makefile,v 1.217 2024/03/27 05:43:38 rillig Exp $ .include <bsd.own.mk> .include <bsd.endian.mk> @@ -9,13 +9,11 @@ # TOOLDIR must be valid, unless MKTOOLS=no .if ${MKTOOLS:Uyes} != "no" -.if "${TOOLDIR}" == "" -.error "TOOLDIR is undefined or empty" -.elif "${TOOLDIR:tW:M/*}" == "" -.error "TOOLDIR is not an absolute path: ${TOOLDIR}" -#.elif !exists(TOOLDIR) # XXX .exists fails for directories -#.error "TOOLDIR does not exist: ${TOOLDIR}" -.endif +. if "${TOOLDIR}" == "" +. error TOOLDIR is undefined or empty +. elif ${TOOLDIR:tW:M/*} == "" +. error TOOLDIR '${TOOLDIR}' is not an absolute path +. endif .endif # MKTOOLS != no # TOOLS_BUILDRUMP == yes builds only the subset of the tools required