feat(make): define common githook

Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
This commit is contained in:
Xinwei Xiong(cubxxw) 2023-05-13 16:04:20 +08:00 committed by Xinwei Xiong(cubxxw-openim)
parent 6ca3de6063
commit 1a034cfc66

View File

@ -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