From 5faa6d22dbfbfe934f23dbe12fa3cbebcee36ace Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 19 Oct 2022 13:33:32 -0700 Subject: Makefile: and linecounts target --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9db210cdc..7a6edbe63 100644 --- a/Makefile +++ b/Makefile @@ -40,6 +40,13 @@ repl: ## run cabal repl cabal repl $(CABALOPTS) pandoc .PHONY: repl +linecounts: ## print line counts for each module + @for f in $(SOURCEFILES); do \ + wc -l $$f; \ + done; \ + wc -l $(SOURCEFILES) +.PHONY: linecounts + # Note: to accept current results of golden tests, # make test TESTARGS='--accept' test: ## unoptimized build and run tests with cabal -- cgit v1.2.3