Fixed makefile to automatically install the git hooks (to acquire the git commit id) on the first make after newly cloning a repository
This commit is contained in:
parent
35b658c813
commit
8ec4e2a505
1 changed files with 6 additions and 0 deletions
6
makefile
6
makefile
|
@ -97,6 +97,12 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
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))
|
||||||
|
$(info *** Installing git hooks ***)
|
||||||
|
GIT_HOOKS = $(shell cp ./Visual\ Studio\ Projects/git-hooks/* ./.git/hooks/;./git/hooks/post-checkout)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
LTO_EXCLUDE_VERSIONS =
|
LTO_EXCLUDE_VERSIONS =
|
||||||
PCAPLIB = pcap
|
PCAPLIB = pcap
|
||||||
ifeq (agcc,$(findstring agcc,$(GCC))) # Android target build?
|
ifeq (agcc,$(findstring agcc,$(GCC))) # Android target build?
|
||||||
|
|
Loading…
Add table
Reference in a new issue