From 3324e7e876e3082e93a483047666dee95eb37840 Mon Sep 17 00:00:00 2001 From: zhouhao Date: Thu, 30 Mar 2017 11:10:58 +0800 Subject: [PATCH 1/2] schema: add .PHONY to validate Signed-off-by: zhouhao --- schema/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/schema/Makefile b/schema/Makefile index 3016fb8893e..e9349c9aaf0 100644 --- a/schema/Makefile +++ b/schema/Makefile @@ -10,6 +10,7 @@ help: 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 From 8b8afafec7635d1249eb3bc432b75be053742a90 Mon Sep 17 00:00:00 2001 From: zhouhao Date: Thu, 30 Mar 2017 11:20:42 +0800 Subject: [PATCH 2/2] Makefile: modify the default value Signed-off-by: zhouhao --- schema/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/schema/Makefile b/schema/Makefile index e9349c9aaf0..5b639a00b63 100644 --- a/schema/Makefile +++ b/schema/Makefile @@ -1,10 +1,11 @@ -default: help +default: validate help: - @echo "Usage: make " + @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: