makefile cleanup, add "make sloc"

This commit is contained in:
Simon Michael 2008-10-18 04:34:41 +00:00
parent dc497e0c26
commit 7db0881b40

View File

@ -28,6 +28,15 @@ test:
@./hledger.hs test @./hledger.hs test
@./regtest.py @./regtest.py
tag:
rm -f TAGS; hasktags -e *hs Ledger/*hs
clean:
rm -f {,Ledger/}*{.o,.hi,~} darcs-amend-record*
Clean: clean clean-docs
rm -f hledger TAGS tags
# docs # docs
MAIN=hledger.hs MAIN=hledger.hs
@ -97,19 +106,15 @@ test-docs: api-doc-frames
clean-docs: clean-docs:
rm -rf api-doc hoogle rm -rf api-doc hoogle
# misc
show-changes: show-changes:
@echo Changes since last release: @echo Changes since last release:
@echo @echo
@darcs changes --from-tag . | grep '*' @darcs changes --from-tag . | grep '*'
# misc sloc:
@echo "lines of test and app code:"
tag: @sloccount Tests.hs | grep haskell:
rm -f TAGS; hasktags -e *hs Ledger/*hs @sloccount `ls {,Ledger/}*.hs |grep -v Tests.hs` | grep haskell:
clean:
rm -f {,Ledger/}*{.o,.hi,~} darcs-amend-record*
Clean: clean clean-docs
rm -f hledger TAGS tags