hledger/Makefile

38 lines
660 B
Makefile
Raw Normal View History

2007-07-02 20:31:47 +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-05-02 06:50:10 +04:00
profile prof:
$(BUILD) -prof -auto-all
$(TOPROFILE) +RTS -p
mv hledger.prof $(TIME).prof
cat $(TIME).prof
xprofile xprof:
$(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-02 20:43:14 +04:00
@./overview.hs Types.hs
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