hledger/Makefile
2007-03-14 01:46:22 +00:00

35 lines
653 B
Makefile

build: Tags
ghc --make hledger.hs -o hledger
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