From 8de4a90796e33aedf11f72995498a8ca922701fa Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 19 Nov 2025 08:24:58 +0100 Subject: [PATCH] projects-dir-minimal.mk: Fix linking after package build Linking the projects-dir Makefile fails if make pkg-rebuild has been run on jw-build, because it leaves another projects-dir-minimal.mk below the dist directory. Fix that. Signed-off-by: Jan Lindemann --- make/projects-dir-minimal.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/projects-dir-minimal.mk b/make/projects-dir-minimal.mk index 7d68d7fc..00dce372 100644 --- a/make/projects-dir-minimal.mk +++ b/make/projects-dir-minimal.mk @@ -44,7 +44,7 @@ $(JWBDIR): all: link-makefile.done link-makefile.done: | $(JWBDIR) [ -L $(PROJECTS_MAKEFILE_NAME) ] || \ - ln -sf `find $(JWBDIR) -name '*.mk' -print0 | xargs -0 grep -l some-random-string-to-id-this-makefile` \ + ln -sf `git -C $(JWBDIR) ls-files | sed '/\.mk$$/ !d; s|^|$(JWBDIR)/|' | xargs grep -l some-random-string-to-id-this-makefile` \ $(PROJECTS_MAKEFILE_NAME) touch $@ clean: clean.link-makefile