summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-04-21 15:21:08 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-04-21 15:21:08 +0200
commitff27716bec51cad5f073019bee093a2deee6fc47 (patch)
treef9ff3091534291159747e63bf80a3fcd0063db62
parent5e26d00e6b608f59558051b60c4eb9e3d2a41a5d (diff)
compile just one chain with
make shaders CHAIN=unfiltered
-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 $@