allow injecting flags into the make

This commit is contained in:
Michael Zhang 2023-02-16 01:49:08 -06:00
parent 0000047066
commit 00000480be

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 $< $@