-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (30 loc) · 1.23 KB
/
Makefile
File metadata and controls
40 lines (30 loc) · 1.23 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
.PHONY: help install validate validate-all validate-semantic validate-strict clean
PYTHON ?= python3
PIP ?= pip3
SCHEMA := decision-log/decision-log.schema.json
EXAMPLE := examples/rgds-dec-0001.json
VALIDATE_ONE := scripts/validate_decision_log.py
VALIDATE_ALL := scripts/validate_all_examples.py
help:
@echo "RGDS – Regulated Gate Decision Support"
@echo ""
@echo "Available commands:"
@echo " make install Install Python dependencies"
@echo " make validate Validate the default example (schema-only)"
@echo " make validate-semantic Validate the default example (schema + semantic)"
@echo " make validate-strict Validate the default example (semantic warnings fail)"
@echo " make validate-all Validate all examples (schema + semantic + warnings)"
@echo " make clean Remove Python cache files"
install:
$(PIP) install -r requirements.txt
validate:
$(PYTHON) $(VALIDATE_ONE) $(SCHEMA) $(EXAMPLE)
validate-semantic:
$(PYTHON) $(VALIDATE_ONE) $(SCHEMA) $(EXAMPLE) --semantic
validate-strict:
$(PYTHON) $(VALIDATE_ONE) $(SCHEMA) $(EXAMPLE) --strict
validate-all:
$(PYTHON) $(VALIDATE_ALL)
clean:
find . -type d -name "__pycache__" -exec rm -rf {} +
find . -type f -name "*.pyc" -delete