allow injecting flags into the make

This commit is contained in:
Michael Zhang 2023-02-16 01:49:08 -06:00
parent e2b74d4559
commit cf498fb670

View file

@ -2,6 +2,7 @@
.PRECIOUS: $(EXAMPLES_PPM)
RAYTRACER_FLAGS :=
DOCKER := docker
ZIP := zip
PANDOC := pandoc
@ -39,7 +40,7 @@ $(SHOWCASE): examples/soft-shadow-demo.png
cp $< $@
examples/%.ppm: examples/%.txt $(SOURCES)
cargo run --release -- -o $@ $<
cargo run --release -- -o $@ $(RAYTRACER_FLAGS) $<
examples/%.png: examples/%.ppm
convert $< $@