jw-pkg/make/projects.mk
Jan Lindemann 521600bc56 projects.mk -> platform.mk: Move definitions up
To remove redundancy, get-os.sh needs to be retired in favor of
pkg.py distro info. It's needed in platform.mk, but the only
definiton of JW_PKG_PY is in projects.mk, so move it, along with the
variables essential for the command:

  include $(JWBDIR)/make/py-version.mk (defining PYTHON)
  JW_PKG_PY
  DEVELOPMENT
  VERSION_FILE

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-03-02 12:55:36 +00:00

13 lines
470 B
Makefile

# == Variables for inter-project-communication
include $(JWBDIR)/make/platform.mk
# -- Query the build system about other projects:
ifneq ($(TOPDIR),)
proj_query_cmd = $(JW_PKG_PY) projects
proj_query = $(shell $(proj_query_cmd) $(1))
proj_dir = $(call proj_query,proj-dir $(1))
htdocs_dir = $(call proj_query,htdocs-dir $(1))
tmpl_dir = $(call proj_query,tmpl-dir $(1))
endif