1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-03-09 20:18:38 +00:00

SCP: Updated makefile to current.

This commit is contained in:
Richard Cornwell
2021-02-04 19:48:57 -05:00
parent 3ef3e22aaf
commit f313c2b316

View File

@@ -955,7 +955,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 ***)