Skip to content

Commit

Permalink
Merge pull request opencontainers#750 from q384566678/schema-test
Browse files Browse the repository at this point in the history
schema: modify Makefile
  • Loading branch information
vbatts authored Apr 10, 2017
2 parents af9e4b3 + 8b8afaf commit daba39c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions schema/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@

default: help
default: validate

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

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

.PHONY: validate
validate: validate.go
go get -d ./...
go build ./validate.go
Expand Down

0 comments on commit daba39c

Please sign in to comment.