Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
JSONSCHEMA ?= jsonschema
SHELLCHECK ?= shellcheck
PYTHON ?= python3
CURL ?= curl
BSDTAR ?= bsdtar
MKDIRP ?= mkdir -p
RMRF ?= rm -rf

# 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
$(JSONSCHEMA) fmt schemas meta --verbose
$(JSONSCHEMA) fmt test --verbose --default-dialect "https://json-schema.org/draft/2020-12/schema"

.PHONY: common
common:
Expand All @@ -20,12 +25,15 @@ common:

.PHONY: lint
lint: common
$(JSONSCHEMA) fmt schemas test meta --verbose --check
$(JSONSCHEMA) fmt schemas meta --verbose --check
$(JSONSCHEMA) fmt test --verbose --default-dialect "https://json-schema.org/draft/2020-12/schema"

.PHONY: test
test:
$(JSONSCHEMA) test ./test

.PHONY: external
include generate/iso/currency/include.mk
include generate/iso/language/include.mk
external: $(EXTERNAL)
generate: $(GENERATE)
Loading