Skip to content

Commit cb90a82

Browse files
author
Mrunal Patel
authored
Merge pull request #778 from wking/schema-makefile-phony
schema/Makefile: Add .PHONY declarations for phony targets
2 parents 5492fc0 + 45cd926 commit cb90a82

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

schema/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11

2+
.PHONY: default
23
default: validate
34

5+
.PHONY: help
46
help:
57
@echo "Usage: make [target]"
68
@echo
79
@echo " * 'fmt' - format the json with indentation"
810
@echo " * 'help' - show this help information"
911
@echo " * 'validate' - build the validation tool"
1012

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

@@ -16,6 +19,6 @@ validate: validate.go
1619
go get -d ./...
1720
go build ./validate.go
1821

22+
.PHONY: clean
1923
clean:
2024
rm -f validate
21-

0 commit comments

Comments
 (0)