mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-27 04:13:11 +03:00
35 lines
642 B
Makefile
35 lines
642 B
Makefile
build: Tags
|
|
ghc --make hledger.hs
|
|
|
|
profile:
|
|
ghc --make -prof -auto-all hledger.hs
|
|
hledger -s bal +RTS -p
|
|
T=`date +"%Y%m%d%H%M"`
|
|
echo $(T)
|
|
mv hledger.prof `date +"%Y%m%d%H%M"`.prof
|
|
hledger -s bal +RTS -px
|
|
mv hledger.prof `date +"%Y%m%d%H%M"`.xprof
|
|
echo $(T)
|
|
make xprof
|
|
|
|
xprof:
|
|
ghcprof `ls -t1 *.xprof | head -1`
|
|
|
|
haddock:
|
|
haddock -h -o doc *.hs
|
|
|
|
overview:
|
|
runhaskell ./overview.hs >.ovtmp; mv .ovtmp OVERVIEW
|
|
|
|
loc:
|
|
@darcs trackdown 'find . -name "*hs" |xargs wc -l |echo OUTPUT `tail -1`; false' |ruby -nae'puts $$F[1] if /^OUTPUT/'
|
|
|
|
Tags:
|
|
hasktags *hs
|
|
|
|
clean:
|
|
rm -f *.o *.hi *~
|
|
|
|
Clean: clean
|
|
rm -f hledger overview TAGS tags
|