mirror of
https://github.com/simh/simh.git
synced 2026-01-25 11:46:37 +00:00
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:
6
makefile
6
makefile
@@ -97,6 +97,12 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
|
||||
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 =
|
||||
PCAPLIB = pcap
|
||||
ifeq (agcc,$(findstring agcc,$(GCC))) # Android target build?
|
||||
|
||||
Reference in New Issue
Block a user