Skip to content

Commit

Permalink
feat(make): add cloc rule
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Martins <josemartins90@gmail.com>
  • Loading branch information
josecm authored and DavidMCerdeira committed Dec 1, 2023
1 parent 1561d48 commit 79f170a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,12 @@ $(directories):

endif

# Count lines of code for the exact target platform and configuration

.PHONY: cloc
cloc: | $(deps)
@cloc --by-file-by-lang $(c_src_files) $(asm_src_files) $(c_hdr_files)

#Clean all object, dependency and generated files

.PHONY: clean
Expand Down

0 comments on commit 79f170a

Please sign in to comment.