INFILES = $(wildcard *.shader.in)
GENERATEDFILES = $(patsubst %.shader.in,%.shader,$(INFILES))
-all: $(GENERATEDFILES)
+all: shaderlist.txt $(GENERATEDFILES)
-%.shader: shaderlist.txt %.shader.in
+%.shader: %.shader.in
./shader-cpp.sh "$<" > "$@"
clean:
- $(RM) "$(GENERATEDFILES)"
+ $(RM) $(GENERATEDFILES)
+.PHONY: shaderlist.txt
shaderlist.txt:
ls -1 *.shader | cut -d . -f 1 > "$@"