Makefile
changeset 15 db66054a2ff3
parent 14 8d49ccbdb035
child 16 ab28d0363837
--- a/Makefile	Mon Oct 31 11:22:03 2016 +0300
+++ b/Makefile	Tue Nov 01 17:40:13 2016 +0300
@@ -69,6 +69,10 @@
 endef
 endif
 
+define hg_get_rev_num
+hg -R $(HGROOT)/`basename $(1)` id -i | sed 's/\+//' > $(2)
+endef
+
 define get_src_hg
 rm -rf $(1)
 $(call hg_get_archive, $(1), $(2))
@@ -246,6 +250,7 @@
 
 beremiz: | build examples
 	$(call get_src_hg,build/beremiz)
+	$(call hg_get_rev_num,beremiz,build/beremiz/revision)
 	$(call tweak_beremiz_targets)
 	rm -rf examples/canopen_tests
 	mkdir -p examples/canopen_tests