aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-08-27 14:22:21 +0200
committerClifford Wolf <clifford@clifford.at>2018-08-27 14:22:21 +0200
commitddc1761f1a443ea9560c67cfc126160ba7254a39 (patch)
tree024214903fdf08578b38478be42b820abc09140b /Makefile
parent9e845bd25460d7b8287cf3ea5147040689940f49 (diff)
downloadyosys-ddc1761f1a443ea9560c67cfc126160ba7254a39.tar.gz
yosys-ddc1761f1a443ea9560c67cfc126160ba7254a39.tar.bz2
yosys-ddc1761f1a443ea9560c67cfc126160ba7254a39.zip
Add "make coverage"
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7eb3971f7..39a361a5f 100644
--- a/Makefile
+++ b/Makefile
@@ -650,6 +650,12 @@ clean-abc:
mrproper: clean
git clean -xdf
+coverage:
+ ./yosys -qp 'help; help -all'
+ rm -rf coverage.info coverage_html
+ lcov --capture -d . --no-external -o coverage.info
+ genhtml coverage.info --output-directory coverage_html
+
qtcreator:
{ for file in $(basename $(OBJS)); do \
for prefix in cc y l; do if [ -f $${file}.$${prefix} ]; then echo $$file.$${prefix}; fi; done \
@@ -740,6 +746,6 @@ echo-git-rev:
-include kernel/*.d
-include techlibs/*/*.d
-.PHONY: all top-all abc test install install-abc manual clean mrproper qtcreator
+.PHONY: all top-all abc test install install-abc manual clean mrproper qtcreator coverage vcxsrc mxebin
.PHONY: config-clean config-clang config-gcc config-gcc-static config-gcc-4.8 config-gprof config-sudo