From 45cd926102d9c250d96f068ebef8a4cd6a80edc0 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 24 Apr 2017 13:47:03 -0700 Subject: [PATCH] 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 --- schema/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/schema/Makefile b/schema/Makefile index b5a654c7d..0a0b04084 100644 --- a/schema/Makefile +++ b/schema/Makefile @@ -1,6 +1,8 @@ +.PHONY: default default: validate +.PHONY: help help: @echo "Usage: make [target]" @echo @@ -8,6 +10,7 @@ help: @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 @@ -16,6 +19,6 @@ validate: validate.go go get -d ./... go build ./validate.go +.PHONY: clean clean: rm -f validate -