Build system: added handling for building on systems without git
This commit is contained in:
parent
8edafd70cf
commit
c1e597feba
@ -30,7 +30,8 @@ BUILD_SEED_DIFFERENTIATION=0
|
||||
|
||||
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"
|
||||
QUIET_AS = @echo ' AS '$@;
|
||||
|
Loading…
Reference in New Issue
Block a user