-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 1.04 KB
/
Copy pathMakefile
File metadata and controls
41 lines (30 loc) · 1.04 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
39
40
41
TEX = xelatex
PYTHON = python3
SRC = src/main.tex
OUTDIR = build
PDF = $(OUTDIR)/codex-usage-guide.pdf
.PHONY: generate check check-static check-fast check-release-local test test-browser check-published pdf clean
generate:
$(PYTHON) scripts/build_site.py
$(PYTHON) scripts/generate_desktop_screenshots.py
check:
$(PYTHON) scripts/build_site.py --check
$(PYTHON) -m unittest discover -s tests
$(PYTHON) scripts/check_site.py
check-static: check
check-fast:
$(PYTHON) scripts/build_site.py --check
$(PYTHON) scripts/check_site.py
check-release-local: check test-browser
test:
$(PYTHON) -m unittest discover -s tests -v
test-browser:
npm run test:browser
check-published:
$(PYTHON) scripts/check_published_site.py --base-url https://whojay0609.github.io/codex-usage-guide/
pdf:
mkdir -p $(OUTDIR)
$(TEX) -interaction=nonstopmode -halt-on-error -jobname=codex-usage-guide -output-directory=$(OUTDIR) $(SRC)
$(TEX) -interaction=nonstopmode -halt-on-error -jobname=codex-usage-guide -output-directory=$(OUTDIR) $(SRC)
clean:
rm -rf $(OUTDIR)