summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files 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