works for sub folders of CHAIN folder specified (nw)

This commit is contained in:
Miodrag Milanovic 2016-04-21 15:49:12 +02:00
parent 0d980951c9
commit b69d285eab

View File

@ -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