-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
52 lines (35 loc) · 1.49 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
MANIM_COMMAND=manim
MANIM_ARGUMENTS=-r2520,1080 --high_quality --video_output_dir ./render/manim
MANIM_ARGUMENTS_PREVIEW=-r630,270 -pl --video_output_dir ./render/manim/preview
MANIM_SOURCE=./scenes/scenes.py
ifdef PREVIEW
MANIM_ARGUMENTS=$(MANIM_ARGUMENTS_PREVIEW)
endif
.PHONY: all clean all_scenes
all: all_scenes
clean:
rm ./media -r
rm ./render/manim -r
all_scenes: $(MANIM_SOURCE)
$(MANIM_COMMAND) $(MANIM_SOURCE) $(MANIM_ARGUMENTS) -a
middle_scene: scene_gravity_points scene_expansion scene_de_rham
university_scene: scene_dark_energy scene_de_rham_pauli scene_lisa scene_massive_gravity_text
# single scenes
scene_dark_energy: $(MANIM_SOURCE)
$(MANIM_COMMAND) $(MANIM_SOURCE) DarkEnergy $(MANIM_ARGUMENTS)
scene_expansion: $(MANIM_SOURCE)
$(MANIM_COMMAND) $(MANIM_SOURCE) Expansion $(MANIM_ARGUMENTS)
scene_de_rham_pauli: $(MANIM_SOURCE)
$(MANIM_COMMAND) $(MANIM_SOURCE) DeRhamAndPaoli $(MANIM_ARGUMENTS)
scene_de_rham: $(MANIM_SOURCE)
$(MANIM_COMMAND) $(MANIM_SOURCE) DeRham $(MANIM_ARGUMENTS)
scene_big_crunch: $(MANIM_SOURCE)
$(MANIM_COMMAND) $(MANIM_SOURCE) BigCrunch $(MANIM_ARGUMENTS)
scene_lisa: $(MANIM_SOURCE)
$(MANIM_COMMAND) $(MANIM_SOURCE) LISA $(MANIM_ARGUMENTS)
scene_massive_gravity_text: $(MANIM_SOURCE)
$(MANIM_COMMAND) $(MANIM_SOURCE) MassiveGravityText $(MANIM_ARGUMENTS)
scene_wave_race: $(MANIM_SOURCE)
$(MANIM_COMMAND) $(MANIM_SOURCE) WaveRace $(MANIM_ARGUMENTS)
scene_gravity_points: $(MANIM_SOURCE)
$(MANIM_COMMAND) $(MANIM_SOURCE) GravityPoints $(MANIM_ARGUMENTS)