Update Makefile

add note about GIT_VERSION
pull/3899/merge
Miro Stauder 4 years ago committed by GitHub
parent cf029cc63c
commit 25b0666476
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,10 +1,18 @@
#!/bin/make -f
### NOTES:
### version string is fetched from git history
### when not available, specify GIT_VERSION on commnad line:
###
### ```
### GIT_HISTORY=2.x-dev make $(nproc)
### ```
ifndef GIT_VERSION
GIT_VERSION := $(shell git describe --long --abbrev=7)
GIT_VERSION := $(shell git describe --long --abbrev=7)
ifndef GIT_VERSION
$(error GIT_VERSION is not set)
$(error GIT_VERSION is not set)
endif
endif

Loading…
Cancel
Save