topdir.mk: Fix: make topdir does only half a job

make topdir doesn't reliably regenerate pyrightconfig.json because of .SECONDEXPANSION. Adding a second dollar symbol $$(TD_GENERATE_FILES) solves the problem.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-06-01 13:38:55 +02:00
commit 5a1ef45cc0
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61
2 changed files with 4 additions and 2 deletions

View file

@ -123,6 +123,7 @@ format: topdir
check-syntax: topdir
check-format: topdir
check: check-syntax check-format
@echo "Static code checks completed successfully!"
install: topdir.install
clean: topdir.clean
distclean: topdir.distclean
@ -140,7 +141,7 @@ local-%: FORCE
unlocal:
$(RM) -f $(shell find . -name local.mk)
topdir: $(TD_GENERATE_FILES)
topdir: $$(TD_GENERATE_FILES)
topdir.clean:
$(RM) -rf *.done $(TD_GENERATE_FILES)
clean: topdir.clean