Files
wgpu/Makefile
2020-03-19 09:44:14 -04:00

16 lines
318 B
Makefile

.PHONY: all clean
all: boids.metallib
clean:
rm *.metal *.air *.metallib
%.metal: test-data/%.wgsl $(wildcard src/*.rs src/**/*.rs examples/*.rs)
cargo run --example convert -- $< $@
%.air: %.metal
xcrun -sdk macosx metal -c $< -mmacosx-version-min=10.11
%.metallib: %.air
xcrun -sdk macosx metallib $< -o $@