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>
21 lines
564 B
Makefile
21 lines
564 B
Makefile
TOPDIR = ..
|
|
CACHED_FILES := defs.mk projects.mk platform.mk Makefile
|
|
MKFILES += $(CACHE_PROJECTS_MK)
|
|
|
|
include $(TOPDIR)/make/proj.mk
|
|
include $(JWBDIR)/make/make.mk
|
|
|
|
ifneq ($(MAKECMDGOALS),install-links)
|
|
ifneq ($(MAKECMDGOALS),do-install-links)
|
|
include $(JWBDIR)/make/dirs.mk
|
|
endif
|
|
endif
|
|
|
|
include $(JWBDIR)/make/dev-utils.mk
|
|
|
|
ifeq ($(TARGET),mingw)
|
|
install: $(INSTALL_MAKEDIR)/winres.rc.tmpl
|
|
endif
|
|
|
|
grep-vars:
|
|
$(Q)sed '/^ *[A-Z]/!d; s/^[ ]*//g; s/[=+?:].*//g; s/[ ]*//g' *.mk | sort -u
|