mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-18 17:57:11 +03:00
makefile cleanup, add "make sloc"
This commit is contained in:
parent
dc497e0c26
commit
7db0881b40
25
Makefile
25
Makefile
@ -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
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user