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)
|
.PRECIOUS: $(EXAMPLES_PPM)
|
||||||
|
|
||||||
|
RAYTRACER_FLAGS :=
|
||||||
DOCKER := docker
|
DOCKER := docker
|
||||||
ZIP := zip
|
ZIP := zip
|
||||||
PANDOC := pandoc
|
PANDOC := pandoc
|
||||||
|
@ -39,7 +40,7 @@ $(SHOWCASE): examples/soft-shadow-demo.png
|
||||||
cp $< $@
|
cp $< $@
|
||||||
|
|
||||||
examples/%.ppm: examples/%.txt $(SOURCES)
|
examples/%.ppm: examples/%.txt $(SOURCES)
|
||||||
cargo run --release -- -o $@ $<
|
cargo run --release -- -o $@ $(RAYTRACER_FLAGS) $<
|
||||||
|
|
||||||
examples/%.png: examples/%.ppm
|
examples/%.png: examples/%.ppm
|
||||||
convert $< $@
|
convert $< $@
|
||||||
|
|
Loading…
Reference in a new issue