hledger/Makefile
2007-07-03 09:11:03 +00:00

42 lines
789 B
Makefile

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 <last.prof >>simple.prof
xprofile:
$(BUILD) -prof -auto-all
$(TOPROFILE) +RTS -px
mv hledger.prof $(TIME).prof
ghcprof $(TIME).prof
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