BUILD=ghc --make hledger.hs -o hledger -prof -auto-all #-O2 TOPROFILE=hledger -s balance TIME=`date +"%Y%m%d%H%M"` build: Tags $(BUILD) profile: $(BUILD) -prof -auto-all $(TOPROFILE) +RTS -p mv hledger.prof $(TIME).prof rm -f last.prof ln -s $(TIME).prof last.prof head -20 $(TIME).prof >simple.prof cat simple.prof ./simplifyprof.hs >simple.prof xprofile: $(BUILD) -prof -auto-all $(TOPROFILE) +RTS -px mv hledger.prof $(TIME).prof ghcprof $(TIME).prof #LEDGER=test.dat compare: rm -f 1 2 ledger -s balance >1 ledger register >>1 ./hledger.hs -s balance >2 ./hledger.hs register >>2 diff 1 2 haddock: haddock -h -o doc *.hs overview: @./overview.hs Types.hs | tee 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