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