From d1dcdead0c5f614757c41642ce84e99d33bf4678 Mon Sep 17 00:00:00 2001 From: libotony Date: Tue, 27 Feb 2024 17:49:24 +0800 Subject: [PATCH] Makefile: set thor as default and help as fallback for none matched target (#673) --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index f4f5e2952..2c6117a87 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,7 @@ MAJOR = $(shell go version | cut -d' ' -f3 | cut -b 3- | cut -d. -f1) MINOR = $(shell go version | cut -d' ' -f3 | cut -b 3- | cut -d. -f2) export GO111MODULE=on +.DEFAULT_GOAL := thor .PHONY: thor disco all clean test help: @@ -59,3 +60,6 @@ lint_command_check: lint: | go_version_check lint_command_check #@ Run 'golangci-lint' @golangci-lint run --config .golangci.yml + +.DEFAULT: + @$(MAKE) help