aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Norton <rmn30@cam.ac.uk>2019-05-24 11:18:27 +0100
committerRobert Norton <rmn30@cam.ac.uk>2019-05-24 11:18:27 +0100
commit8f2883bc2c1674fd0cf9b1097bca333fad2448b5 (patch)
tree27400e1e8771d25f96d07411c25cb67966eb440a
parente49783404e8139b7a7bb2974af13b3d8a72da48d (diff)
downloadsail-riscv-8f2883bc2c1674fd0cf9b1097bca333fad2448b5.zip
sail-riscv-8f2883bc2c1674fd0cf9b1097bca333fad2448b5.tar.gz
sail-riscv-8f2883bc2c1674fd0cf9b1097bca333fad2448b5.tar.bz2
Add Makefile rule to get line count.
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f1acbf2..8bf3881 100644
--- a/Makefile
+++ b/Makefile
@@ -168,6 +168,9 @@ ocaml_emulator/coverage_$(ARCH): ocaml_emulator/_sbuild/coverage.native
mkdir ocaml_emulator/bisect && mv bisect*.out bisect/
mkdir ocaml_emulator/coverage_$(ARCH) && bisect-ppx-report -html ocaml_emulator/coverage_$(ARCH)/ -I ocaml_emulator/_sbuild/ bisect/bisect*.out
+cloc:
+ cloc --by-file --force-lang C,sail $(SAIL_SRCS)
+
gcovr:
gcovr -r . --html --html-detail -o index.html