shader_compiler = glslangValidator
glsls = $(wildcard examples/*/*.vert examples/*/*.frag examples/*/*.comp)
spirvs = $(addsuffix .spv,$(glsls))
.PHONY: default
default: $(spirvs)
$(spirvs): %.spv: %
$(shader_compiler) -V $< -o $@
.PHONY: clean
clean:
rm -f $(spirvs)