-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (22 loc) · 825 Bytes
/
Makefile
File metadata and controls
32 lines (22 loc) · 825 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
30
31
32
.PHONY: docker-build build build-docker build-local check shell clean lint test site
docker-build:
docker build -t ietf-spec-tools .
build: build-docker
build-docker:
docker run --rm -v "$$(pwd)":/data ietf-spec-tools /data/scripts/gen.sh
build-local:
./scripts/gen.sh
check:
docker run --rm -v "$$(pwd)":/data ietf-spec-tools /data/scripts/check.sh
shell:
docker run --rm -it -v "$$(pwd)":/data ietf-spec-tools bash
clean:
rm -f artifacts/*.xml artifacts/*.html artifacts/*.txt artifacts/*.pdf
lint:
docker run --rm -v "$$(pwd)":/data ietf-spec-tools python3 /data/scripts/lint_frontmatter.py
test:
docker run --rm -v "$$(pwd)":/data -w /data/scripts ietf-spec-tools pytest test_lint_frontmatter.py -v
site: build
@python3 scripts/gen_index.py
@python3 scripts/gen_problems.py
@python3 scripts/serve.py