Build system: added handling for building on systems without git

This commit is contained in:
(Tim) Efthimis Kritikos 2023-12-06 00:23:24 +00:00
parent 8edafd70cf
commit c1e597feba

View File

@ -30,7 +30,8 @@ BUILD_SEED_DIFFERENTIATION=0
VERSION="v0.3.0-dev" VERSION="v0.3.0-dev"
COMMIT=$(shell git log --pretty=format:'%H' -1 |cat) # TODO: handle case where the source code is not part of a git repository
COMMIT=$(shell if which git >/dev/null 2>/dev/null ;then git log --pretty=format:'%H' -1 |cat ;else echo git-not-installed; fi)
ifeq "${QUIET}" "1" ifeq "${QUIET}" "1"
QUIET_AS = @echo ' AS '$@; QUIET_AS = @echo ' AS '$@;