summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--makefile2
-rw-r--r--src/osd/modules/render/bgfx/shaders/makefile5
2 files changed, 5 insertions, 2 deletions
diff --git a/makefile b/makefile
index 18a6526375d..04db4cc6942 100644
--- a/makefile
+++ b/makefile
@@ -1589,7 +1589,7 @@ shaders: bgfx-tools
-$(call MKDIR,build/bgfx/shaders/gles)
-$(call MKDIR,build/bgfx/shaders/glsl)
-$(call MKDIR,build/bgfx/shaders/metal)
- $(SILENT) $(MAKE) -C $(SRC)/osd/modules/render/bgfx/shaders rebuild
+ $(SILENT) $(MAKE) -C $(SRC)/osd/modules/render/bgfx/shaders rebuild CHAIN="$(CHAIN)"
#-------------------------------------------------
# Translation
diff --git a/src/osd/modules/render/bgfx/shaders/makefile b/src/osd/modules/render/bgfx/shaders/makefile
index e5ee052ab31..70c1ac31127 100644
--- a/src/osd/modules/render/bgfx/shaders/makefile
+++ b/src/osd/modules/render/bgfx/shaders/makefile
@@ -6,8 +6,11 @@ include shader.mk
SUBDIRS := $(patsubst .,,$(patsubst ./,,$(shell find . -type d)))
-
+ifneq ($(CHAIN),)
+rebuild: chains/$(CHAIN)
+else
rebuild: main $(SUBDIRS)
+endif
$(SUBDIRS):
@echo $@