-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (33 loc) · 1.06 KB
/
Makefile
File metadata and controls
38 lines (33 loc) · 1.06 KB
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
.PHONY: all examples theme-examples
all: examples theme-examples
examples:
@for file in $$(ls examples/*.tape); do \
name=$$(basename $${file%.*}); \
output_path="examples/$${name}.mp4"; \
gif_output_path="examples/$${name}.gif"; \
if [ ! -f "$${output_path}" ] && [ ! -f "$${gif_output_path}" ]; then \
exe/demotape run $$file --screenshot; \
fi; \
done; \
optipng -quiet -o2 examples/*.png
theme-examples:
@rm -rf .sw*
@for file in $$(ls lib/demo_tape/themes/*.json); do \
name=$$(basename $${file%.*}); \
output_base_path="examples/themes/$${name}"; \
if [ ! -f "$${output_base_path}.png" ]; then \
export THEME=$${name}; \
exe/demotape run \
examples/themes/theme.tape \
--theme $${name} \
--output-path $${output_base_path}.mp4 \
--screenshot_only; \
optipng -quiet -o2 examples/themes/$${name}.png; \
fi; \
done;
zed:
@cd editors/zed/tree-sitter && \
npm install && \
node_modules/.bin/tree-sitter generate && \
node_modules/.bin/tree-sitter build-wasm && \
mv tree-sitter-demotape.wasm ../grammars/demotape.wasm