Makefile: Allow overriding revisions IDs through environment, to make it possible to build code comming from non HG repos.
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Thu, 19 May 2022 18:21:12 +0200
changeset 45 20c1c8a59eab
parent 44 c460ec8c65e9
child 46 0c4dd1cd0988
Makefile: Allow overriding revisions IDs through environment, to make it possible to build code comming from non HG repos.
Makefile
--- a/Makefile	Thu May 19 18:19:23 2022 +0200
+++ b/Makefile	Thu May 19 18:21:12 2022 +0200
@@ -63,7 +63,7 @@
 $(foreach project,$(OWN_PROJECTS),$(eval $(call get_revision,$(project))))
 
 define get_revisionid
-$(1)_revisionid=$(shell hg -R $(HGROOT)/$(1) id -i -r $($(1)_revision))
+$(1)_revisionid?=$(shell hg -R $(HGROOT)/$(1) id -i -r $($(1)_revision))
 endef
 $(foreach project,$(OWN_PROJECTS),$(eval $(call get_revisionid,$(project))))