-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (26 loc) · 1.1 KB
/
Makefile
File metadata and controls
31 lines (26 loc) · 1.1 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
.PHONY: gallery gallery-clean gallery-prep tap-formula tap-formula-to-tap
# Render all VHS tapes under docs/vhs into GIFs under docs/gallery
gallery: gallery-prep
@set -e; \
for f in docs/vhs/dt-run.tape docs/vhs/dt-diff.tape; do \
echo "[VHS] Rendering $$f"; \
vhs "$$f"; \
done
# Clean generated gallery artifacts
gallery-clean:
rm -f docs/gallery/*.gif docs/gallery/*.mp4
# --- Homebrew Tap helpers ---
# Generate a Formula/dt.rb using package/formula_template.rb and the current version.
# Optionally set TAP_DIR to your local tap repo (…/Library/Taps/<user>/homebrew-tap).
tap-formula:
@bash package/gen_formula.sh --out package/Formula/dt.rb
@echo "Formula generated at package/Formula/dt.rb"
# If TAP_DIR is provided and points to a homebrew-tap repo, copy the formula there.
tap-formula-to-tap: tap-formula
@if [ -n "$$TAP_DIR" ] && [ -d "$$TAP_DIR" ]; then \
mkdir -p "$$TAP_DIR/Formula"; \
cp package/Formula/dt.rb "$$TAP_DIR/Formula/dt.rb"; \
echo "Copied formula to $$TAP_DIR/Formula/dt.rb"; \
else \
echo "Set TAP_DIR to your local tap path to copy formula automatically."; \
fi