Fixed makefile logic to install git hooks for git commit id
This commit is contained in:
parent
8ec4e2a505
commit
80ce8b2b4e
1 changed files with 8 additions and 3 deletions
11
makefile
11
makefile
|
@ -66,8 +66,10 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
|
||||||
OSNAME = $(OSTYPE)
|
OSNAME = $(OSTYPE)
|
||||||
ifeq (SunOS,$(OSTYPE))
|
ifeq (SunOS,$(OSTYPE))
|
||||||
TEST = /bin/test
|
TEST = /bin/test
|
||||||
|
CP = /bin/cp
|
||||||
else
|
else
|
||||||
TEST = test
|
TEST = test
|
||||||
|
CP = cp
|
||||||
endif
|
endif
|
||||||
ifeq (CYGWIN,$(findstring CYGWIN,$(OSTYPE))) # uname returns CYGWIN_NT-n.n-ver
|
ifeq (CYGWIN,$(findstring CYGWIN,$(OSTYPE))) # uname returns CYGWIN_NT-n.n-ver
|
||||||
OSTYPE = cygwin
|
OSTYPE = cygwin
|
||||||
|
@ -98,9 +100,12 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifeq (git-repo,$(shell if $(TEST) -d ./.git; then echo git-repo; fi))
|
ifeq (git-repo,$(shell if $(TEST) -d ./.git; then echo git-repo; fi))
|
||||||
ifneq (need-hooks,$(shell if $(TEST) ! -e ./.git/hooks/post-checkout; then echo need-hooks; fi))
|
ifeq (need-hooks,$(shell if $(TEST) ! -e ./.git/hooks/post-checkout; then echo need-hooks; fi))
|
||||||
$(info *** Installing git hooks ***)
|
$(info *** Installing git hooks in local repository ***)
|
||||||
GIT_HOOKS = $(shell cp ./Visual\ Studio\ Projects/git-hooks/* ./.git/hooks/;./git/hooks/post-checkout)
|
GIT_HOOKS = $(shell $(CP) './Visual Studio Projects/git-hooks/post-commit' ./.git/hooks/)
|
||||||
|
GIT_HOOKS = $(shell $(CP) './Visual Studio Projects/git-hooks/post-checkout' ./.git/hooks/)
|
||||||
|
GIT_HOOKS = $(shell $(CP) './Visual Studio Projects/git-hooks/post-merge' ./.git/hooks/)
|
||||||
|
GIT_HOOKS = $(shell ./.git/hooks/post-checkout)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
LTO_EXCLUDE_VERSIONS =
|
LTO_EXCLUDE_VERSIONS =
|
||||||
|
|
Loading…
Add table
Reference in a new issue