From 4932c6816c7b92e70128c9497d3ff354cf6e2b40 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sun, 8 Feb 2026 08:07:48 +0100 Subject: [PATCH] projects.mk: ?= -assign VERSION_FILE If VERSION_FILE is not found, trying to include makefile snippets triggers the attempt to regenerate it. This happened for installed Makefiles of jw-docker-images: It defines TOPDIR to /opt/jw-docker-images, projects.mk looks there, but the version file is installed under /usr/share/doc/packages/jw-docker-images/VERSION. Allow VERSION_FILE to be overridden including code to keep that from happening. Signed-off-by: Jan Lindemann --- make/projects.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/projects.mk b/make/projects.mk index 9e710c90..80670ead 100644 --- a/make/projects.mk +++ b/make/projects.mk @@ -3,7 +3,7 @@ include $(JWBDIR)/make/platform.mk # -- What do I know about myself? -VERSION_FILE := $(firstword $(wildcard VERSION) $(TOPDIR)/VERSION) +VERSION_FILE ?= $(firstword $(wildcard VERSION) $(TOPDIR)/VERSION) ifndef DEVELOPMENT ifeq ($(wildcard $(VERSION_FILE)),) DEVELOPMENT := true