Skip to content

Commit

Permalink
Merge pull request #778 from wking/schema-makefile-phony
Browse files Browse the repository at this point in the history
schema/Makefile: Add .PHONY declarations for phony targets
  • Loading branch information
Mrunal Patel authored Apr 26, 2017
2 parents 5492fc0 + 45cd926 commit cb90a82
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit cb90a82

Please sign in to comment.