From af442be2fa586a98e8e4da1bb88a9236f5c191d2 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 8 Aug 2014 12:58:02 -0400 Subject: Allow kd-forest flags to be overridden in the Makefile. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b49887b..e96db00 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,9 @@ RM = rm -f DEPS = Makefile color.h kd-forest.h options.h util.h +IMAGEFLAGS = -b 24 -s -l min -c Lab +ANIMFLAGS = -b 19 -s -l mean -c Lab + kd-forest: color.o kd-forest.o main.o options.o util.o $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o kd-forest @@ -26,14 +29,14 @@ kd-forest: color.o kd-forest.o main.o options.o util.o image: kd-forest.png kd-forest.png: kd-forest - ./kd-forest -b 24 -s -l min -c Lab -o kd-forest.png + ./kd-forest $(IMAGEFLAGS) -o kd-forest.png anim: kd-forest.mkv kd-forest.mkv: kd-forest $(RM) kd-forest.mkv mkdir /tmp/kd-frames - ./kd-forest -b 19 -s -l mean -c Lab -a -o /tmp/kd-frames + ./kd-forest $(ANIMFLAGS) -a -o /tmp/kd-frames ffmpeg -r 60 -i /tmp/kd-frames/%04d.png -c:v libx264 -preset veryslow -qp 0 kd-forest.mkv $(RM) -r /tmp/kd-frames -- cgit v1.2.3