Skip to content

Commit 45cd926

Browse files
committed
schema/Makefile: Add .PHONY declarations for phony targets
The only non-phony target (where the target name matches the output file) is 'validate', but we need .PHONY there because the Go dependencies are not represented in the Makefile. This commit adds the missing .PHONY declarations to the other targets, which truly are phony. Signed-off-by: W. Trevor King <[email protected]>
1 parent 4754b55 commit 45cd926

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)