-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 919 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 919 Bytes
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
CURRENT_FILE_EDITING =
# CURRENT_FILE_EDITING = posts/2024-03-15-writing-temp/cheatsheet.qmd
.PHONY: process-eq process-eq-r
# -- Dev ---------------------------------------------------------------------
# Forward substitution on math block labels ($$\n{#eq-*} -> $$ {#eq-*})
process-eq:
@echo "Running process-eq..."
@if [ -n "$(CURRENT_FILE_EDITING)" ]; then \
python scripts/process_eq_labels.py $(CURRENT_FILE_EDITING); \
else \
echo "No CURRENT_FILE_EDITING provided. Skipping post-render step."; \
fi
# Reverse substitution on math block labels ($$ {#eq-*} -> $$\n{#eq-*})
process-eq-r:
@echo "Running process-eq-r..."
@if [ -n "$(CURRENT_FILE_EDITING)" ]; then \
python scripts/process_eq_labels.py $(CURRENT_FILE_EDITING) -r; \
else \
echo "No CURRENT_FILE_EDITING provided. Skipping pre-render step."; \
fi
# -- CI ----------------------------------------------------------------------