build: ask for a reconfigure when the wayland protocol list changes

configure generates the Wayland protocol sources, so a tree configured
before a protocol was added has no way to make the new object and stops
on a missing file. config.mk depends on the generator script too, so
make asks for the reconfigure that produces it, as it already does for
configure and qb.
This commit is contained in:
libretroadmin committed 2026-09-25 19:53:45 +02:00
1 parent 0c0cd89068
commit b40db2251a
1 file changed
+4 -1
+4 -1
View File
@@ -235,7 +235,10 @@ config.mk:
else
-include $(RARCH_OBJ:.o=.d)
ifeq ($(HAVE_CONFIG_MK),)
config.mk: configure qb/*
# The Wayland protocol sources are generated by configure, so a tree
# configured before a protocol was added has no way to make the new
# object: ask for the reconfigure rather than fail on a missing file.
config.mk: configure qb/* gfx/common/wayland/generate_wayland_protos.sh
@echo "config.mk is outdated or non-existing. Run ./configure again."
@exit 1
endif