hledger/Makefile

42 lines
789 B
Makefile
Raw Normal View History

2007-07-03 13:11:03 +04:00
BUILD=ghc --make hledger.hs -o hledger -prof -auto-all #-O2
2007-05-02 06:50:10 +04:00
TOPROFILE=hledger -s balance
TIME=`date +"%Y%m%d%H%M"`
2007-02-11 02:25:48 +03:00
build: Tags
2007-05-02 06:50:10 +04:00
$(BUILD)
2007-07-02 20:31:47 +04:00
2007-07-03 09:42:43 +04:00
profile:
2007-05-02 06:50:10 +04:00
$(BUILD) -prof -auto-all
$(TOPROFILE) +RTS -p
mv hledger.prof $(TIME).prof
2007-07-03 09:42:43 +04:00
rm -f last.prof
ln -s $(TIME).prof last.prof
2007-07-03 13:11:03 +04:00
head -20 $(TIME).prof >simple.prof
cat simple.prof
./simplifyprof.hs <last.prof >>simple.prof
2007-05-02 06:50:10 +04:00
2007-07-03 09:42:43 +04:00
xprofile:
2007-05-02 06:50:10 +04:00
$(BUILD) -prof -auto-all
$(TOPROFILE) +RTS -px
mv hledger.prof $(TIME).prof
ghcprof $(TIME).prof
haddock:
haddock -h -o doc *.hs
2007-03-10 05:07:11 +03:00
overview:
2007-07-03 13:11:03 +04:00
@./overview.hs Types.hs | tee OVERVIEW
2007-03-10 02:21:49 +03:00
loc:
@darcs trackdown 'find . -name "*hs" |xargs wc -l |echo OUTPUT `tail -1`; false' |ruby -nae'puts $$F[1] if /^OUTPUT/'
2007-02-09 06:32:07 +03:00
Tags:
hasktags *hs
2007-02-09 06:17:18 +03:00
clean:
rm -f *.o *.hi *~
Clean: clean
2007-03-10 02:21:49 +03:00
rm -f hledger overview TAGS tags