From 6d1816109ce00fbdfc9bb9e8503f32754448086e Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 4 Jul 2007 03:33:08 +0000 Subject: [PATCH] make cleanups --- Makefile | 31 ++++++++++++++++--------------- NOTES | 3 ++- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index 6f63968b1..4ee905a62 100644 --- a/Makefile +++ b/Makefile @@ -1,26 +1,27 @@ -BUILD=ghc --make hledger.hs -o hledger -prof -auto-all #-O2 -TOPROFILE=hledger -s balance +BUILD=ghc --make hledger.hs -o hledger -prof -auto-all +BUILDOPT=ghc --make hledger.hs -o hledgeropt -O2 +PROFILE=./hledger -s balance +RTS -p TIME=`date +"%Y%m%d%H%M"` build: Tags $(BUILD) +buildopt: clean + $(BUILDOPT) -profile: - $(BUILD) -prof -auto-all - $(TOPROFILE) +RTS -p - mv hledger.prof $(TIME).prof +profile: build + $(PROFILE) + mv hledger.prof profs/$(TIME).prof rm -f last.prof - ln -s $(TIME).prof last.prof - head -20 $(TIME).prof >simple.prof + ln -s profs/$(TIME).prof last.prof + head -20 profs/$(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 +xprofile: build + $(PROFILE) -x + mv hledger.prof profs/$(TIME).xprof + ghcprof profs/$(TIME).xprof #LEDGER=test.dat compare: @@ -44,7 +45,7 @@ Tags: hasktags *hs clean: - rm -f *.o *.hi *~ + rm -f *.o *.hi *~ 1 2 Clean: clean - rm -f hledger overview TAGS tags + rm -f hledger hledgeropt overview TAGS tags diff --git a/NOTES b/NOTES index ff6621617..31e1d03e3 100644 --- a/NOTES +++ b/NOTES @@ -1,7 +1,8 @@ hledger project notes * TO DO -** bugs +** bugs/cleanup +*** rename EntryTransaction/Transaction ** ledger features *** print command *** handle mixed amounts, non-money currencies