-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
40 lines (25 loc) · 1.12 KB
/
Makefile
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
.PHONY: all git-hooks pdf
GENERATED_ADOCS = generated/stf-records.adoc generated/stf-protocols.adoc
INCLUDES = include/*.adoc
DOC_DEPS = $(INCLUDES) $(GENERATED_ADOCS) LICENSE stf-spec.adoc
SCRIPT_DEPS = scripts/lib/*.py
all: generated/stf-spec-github.adoc $(GENERATED_ADOCS)
.git/hooks/pre-commit: scripts/pre-commit
cp scripts/pre-commit .git/hooks/pre-commit
.git/hooks/post-commit: scripts/post-commit
cp scripts/post-commit .git/hooks/post-commit
git-hooks: .git/hooks/pre-commit .git/hooks/post-commit
generated/stf-records.adoc: records/*.yml scripts/gen-records.py .git/hooks/pre-commit .git/hooks/post-commit $(SCRIPT_DEPS)
./scripts/gen-records.py
touch .dirty
generated/stf-protocols.adoc: protocols/*.yml scripts/gen-protocols.py .git/hooks/pre-commit .git/hooks/post-commit $(SCRIPT_DEPS)
./scripts/gen-protocols.py
touch .dirty
scripts/flatten.sh: scripts/bundle-setup.sh
scripts/pdf.sh: scripts/bundle-setup.sh
generated/stf-spec-github.adoc: $(DOC_DEPS) scripts/flatten.sh
./scripts/flatten.sh
touch .dirty
generated/stf-spec.pdf: $(DOC_DEPS) scripts/pdf.sh
./scripts/pdf.sh
pdf: generated/stf-spec.pdf