-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (26 loc) · 850 Bytes
/
Makefile
File metadata and controls
32 lines (26 loc) · 850 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
JSONSCHEMA ?= jsonschema
SHELLCHECK ?= shellcheck
PYTHON ?= python3
# TODO: Extend `validate` to take a directory as argument
SCHEMAS = $(shell find schemas/ -type f -name '*.json')
TESTS = $(shell find test/ -type f -name '*.json')
all: common test
$(JSONSCHEMA) fmt schemas test meta --verbose
.PHONY: common
common:
$(JSONSCHEMA) metaschema schemas meta --verbose
$(JSONSCHEMA) lint schemas meta --verbose
$(JSONSCHEMA) validate meta/schemas.json --verbose $(SCHEMAS)
$(JSONSCHEMA) validate meta/test.json --verbose $(TESTS)
$(SHELLCHECK) scripts/*.sh
./scripts/schemas-tests-mirror.sh
.PHONY: lint
lint: common
$(JSONSCHEMA) fmt schemas test meta --verbose --check
.PHONY: test
test:
$(JSONSCHEMA) test ./test
.PHONY: external
include generate/iso/currency/include.mk
include generate/fasb/us-gaap/include.mk
external: $(EXTERNAL)