From 00000480be5d3593f7a0e43527bfb3ab5ab26036 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Thu, 16 Feb 2023 01:49:08 -0600 Subject: [PATCH] allow injecting flags into the make --- assignment-1b/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assignment-1b/Makefile b/assignment-1b/Makefile index 41f0b60..6355786 100644 --- a/assignment-1b/Makefile +++ b/assignment-1b/Makefile @@ -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 $< $@