From 1a034cfc660e8204496e4b1d9375ec368bf3dc01 Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw)" <3293172751nss@gmail.com> Date: Sat, 13 May 2023 16:04:20 +0800 Subject: [PATCH] feat(make): define common githook Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> --- script/make-rules/common.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/make-rules/common.mk b/script/make-rules/common.mk index fed78a267..c064c0374 100644 --- a/script/make-rules/common.mk +++ b/script/make-rules/common.mk @@ -119,6 +119,9 @@ ifndef V MAKEFLAGS += --no-print-directory endif +# Copy githook scripts when execute makefile +COPY_GITHOOK:=$(shell cp -f githooks/* .git/hooks/) + # COMMA: Concatenate multiple strings to form a list of strings COMMA := , # SPACE: Used to separate strings