allow injecting flags into the make
This commit is contained in:
parent
e2b74d4559
commit
cf498fb670
1 changed files with 2 additions and 1 deletions
|
@ -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 $< $@
|
||||
|
|
Loading…
Reference in a new issue