mirror of
https://github.com/open-simh/simh.git
synced 2026-01-13 23:37:13 +00:00
makefile: precisely determine submodule name to avoid similar name matches
As discussed in #1000
This commit is contained in:
parent
9f064db561
commit
0507aa15fc
2
makefile
2
makefile
@ -951,7 +951,7 @@ ifeq (${WIN32},) #*nix Environments (&& cygwin)
|
||||
GIT_COMMIT_TIME=$(shell grep 'define SIM_GIT_COMMIT_TIME' sim_rev.h | awk '{ print $$3 }')
|
||||
else
|
||||
ifeq (git-submodule,$(if $(shell cd .. ; git rev-parse --git-dir 2>/dev/null),git-submodule))
|
||||
GIT_COMMIT_ID=$(shell cd .. ; git submodule status | grep "$(notdir $(realpath .))" | awk '{ print $$1 }')
|
||||
GIT_COMMIT_ID=$(shell cd .. ; git submodule status | grep " $(notdir $(realpath .)) " | awk '{ print $$1 }')
|
||||
GIT_COMMIT_TIME=$(shell git --git-dir=$(realpath .)/.git log $(GIT_COMMIT_ID) -1 --pretty="%aI")
|
||||
else
|
||||
$(info *** Error ***)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user