summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-10-18 19:00:52 +0200
committerClifford Wolf <clifford@clifford.at>2014-10-18 19:00:52 +0200
commit0471d158d955804c011338c5c664dfa7a38aed1f (patch)
tree0e2f06ee8b2c6c5fb66428fb168ff0540cec725c /Makefile
parent57cd48523694205141ac6169da7a918e5b8d9972 (diff)
Various improvements to version reporting on win32
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f5f6c2f9..f3f304ce 100644
--- a/Makefile
+++ b/Makefile
@@ -325,11 +325,12 @@ endif
echo -en 'Documentation at http://www.clifford.at/yosys/.\r\n' >> yosys-win32-mxebin-$(YOSYS_VER)/readme.txt
sed -e 's,^[^ ]*:,,; s, ,\n,g; s, *\\,,; s,/[^/]*/\.\./,/,g; s,'"$$PWD/"',,' \
$(addsuffix .d,$(basename $(OBJS))) | sort -u | grep '^[^/]' | grep -v kernel/version_ > srcfiles.txt
- bash misc/create_vcxsrc.sh yosys-win32-vcxsrc-$(YOSYS_VER)
- zip yosys-win32-vcxsrc-$(YOSYS_VER)/genfiles.zip $(GENFILES)
+ bash misc/create_vcxsrc.sh yosys-win32-vcxsrc $(YOSYS_VER) $(GIT_REV)
+ echo "namespace Yosys { extern const char *yosys_version_str; const char *yosys_version_str=\"Yosys (Version Information Unavailable)\"; }" > kernel/version.cc
+ zip yosys-win32-vcxsrc-$(YOSYS_VER)/genfiles.zip $(GENFILES) kernel/version.cc
zip -r yosys-win32-mxebin-$(YOSYS_VER).zip yosys-win32-mxebin-$(YOSYS_VER)/
zip -r yosys-win32-vcxsrc-$(YOSYS_VER).zip yosys-win32-vcxsrc-$(YOSYS_VER)/
- rm -f srcfiles.txt
+ rm -f srcfiles.txt kernel/version.cc
endif
config-clean: clean