From 328d198559301e4c35ea3fc8243c6945faa116ac Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 21 Feb 2007 09:21:18 +0000 Subject: [PATCH] overview tool and make rules for profiling, haddock, etc --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Makefile b/Makefile index eac0f922d..b843cb080 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,27 @@ 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 + +update-overview: + runhaskell ./overview.hs >.ov; mv .ov OVERVIEW +# ./overview >.ov; mv .ov OVERVIEW + Tags: hasktags *hs