summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/osd/modules/render/bgfx/shaders/makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osd/modules/render/bgfx/shaders/makefile b/src/osd/modules/render/bgfx/shaders/makefile
index 70c1ac31127..b0f955fe03e 100644
--- a/src/osd/modules/render/bgfx/shaders/makefile
+++ b/src/osd/modules/render/bgfx/shaders/makefile
@@ -4,11 +4,11 @@ BUILD_DIR=../../../../../../build
include shader.mk
-SUBDIRS := $(patsubst .,,$(patsubst ./,,$(shell find . -type d)))
-
ifneq ($(CHAIN),)
-rebuild: chains/$(CHAIN)
+SUBDIRS := $(patsubst .,,$(patsubst ,,$(shell find chains/$(CHAIN) -type d)))
+rebuild: $(SUBDIRS)
else
+SUBDIRS := $(patsubst .,,$(patsubst ./,,$(shell find . -type d)))
rebuild: main $(SUBDIRS)
endif