Skip to content
Merged
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
5 changes: 4 additions & 1 deletion schema/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@

.PHONY: default
default: validate

.PHONY: help
help:
@echo "Usage: make [target]"
@echo
@echo " * 'fmt' - format the json with indentation"
@echo " * 'help' - show this help information"
@echo " * 'validate' - build the validation tool"

.PHONY: fmt
fmt:
for i in *.json ; do jq --indent 4 -M . "$${i}" > xx && cat xx > "$${i}" && rm xx ; done

Expand All @@ -16,6 +19,6 @@ validate: validate.go
go get -d ./...
go build ./validate.go

.PHONY: clean
clean:
rm -f validate