cache.mk: Include from topdir.mk, not make.mk

During a topdir "make all", caching variables is currently not the
first thing that happens. Instead, variables are cached as soon as a
project recurses into the make subdirectory. That was necessary,
because some makefiles were regenerated in the make subdirectory by
autoconf, potentially contributing variables that needed to be
cached.

As of now, autoconf is long gone and this is no longer true. And for
some variables, the two step process becomes involved, notably for
PYTHONPATH, which coding agents would like to look at from the topdir
very early on.

This commit moves the .project-cache.mk creation to topdir.mk, and
.projects-cache.mk creation to jw-pkg/Makefile to address that.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-07-09 07:44:35 +02:00
commit d90c0ebf18
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61
9 changed files with 46 additions and 34 deletions

2
.gitignore vendored
View file

@ -12,3 +12,5 @@ pkg-build.dist
pkgconfig/
rebase.sh
__pycache__
.cache-project.mk
.cache-projects.mk