commit 269b5be53b08b8880c5e12e3e43972d012da9da1
parent e99586971c79c111bd079e112f661575143e7908
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 24 May 2024 10:24:20 +0200
Force cache directory creation
This becomes a prerequisite for any makefile target that explicitly
refers to it. Some targets create this directory automatically, for
example when cloning a git repository. But others don't, like the
profile builder script which fails if the cache directory doesn't exist.
Hence this commit.
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -40,7 +40,7 @@ uninstall: makefile
@$(MAKE) -f $(MK) -f Makefile uninstall_all
# Generate the Makefile of the build
-makefile:
+makefile: cache
@echo "Setup $(MK)"
@{ \
printf 'CACHE = %s\n' "$(CACHE)"; \
@@ -53,4 +53,7 @@ prefix:
@(p=$$(echo $(PREFIX)) && mkdir -p -- "$${p}" && cd -- "$${p}" && pwd) \
> .prefix
+cache:
+ mkdir -p "$(CACHE)"
+
include lint.mk