mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-18 17:57:11 +03:00
make cleanups
This commit is contained in:
parent
88e50a3bfd
commit
6d1816109c
31
Makefile
31
Makefile
@ -1,26 +1,27 @@
|
|||||||
BUILD=ghc --make hledger.hs -o hledger -prof -auto-all #-O2
|
BUILD=ghc --make hledger.hs -o hledger -prof -auto-all
|
||||||
TOPROFILE=hledger -s balance
|
BUILDOPT=ghc --make hledger.hs -o hledgeropt -O2
|
||||||
|
PROFILE=./hledger -s balance +RTS -p
|
||||||
TIME=`date +"%Y%m%d%H%M"`
|
TIME=`date +"%Y%m%d%H%M"`
|
||||||
|
|
||||||
build: Tags
|
build: Tags
|
||||||
$(BUILD)
|
$(BUILD)
|
||||||
|
|
||||||
|
buildopt: clean
|
||||||
|
$(BUILDOPT)
|
||||||
|
|
||||||
profile:
|
profile: build
|
||||||
$(BUILD) -prof -auto-all
|
$(PROFILE)
|
||||||
$(TOPROFILE) +RTS -p
|
mv hledger.prof profs/$(TIME).prof
|
||||||
mv hledger.prof $(TIME).prof
|
|
||||||
rm -f last.prof
|
rm -f last.prof
|
||||||
ln -s $(TIME).prof last.prof
|
ln -s profs/$(TIME).prof last.prof
|
||||||
head -20 $(TIME).prof >simple.prof
|
head -20 profs/$(TIME).prof >simple.prof
|
||||||
cat simple.prof
|
cat simple.prof
|
||||||
./simplifyprof.hs <last.prof >>simple.prof
|
./simplifyprof.hs <last.prof >>simple.prof
|
||||||
|
|
||||||
xprofile:
|
xprofile: build
|
||||||
$(BUILD) -prof -auto-all
|
$(PROFILE) -x
|
||||||
$(TOPROFILE) +RTS -px
|
mv hledger.prof profs/$(TIME).xprof
|
||||||
mv hledger.prof $(TIME).prof
|
ghcprof profs/$(TIME).xprof
|
||||||
ghcprof $(TIME).prof
|
|
||||||
|
|
||||||
#LEDGER=test.dat
|
#LEDGER=test.dat
|
||||||
compare:
|
compare:
|
||||||
@ -44,7 +45,7 @@ Tags:
|
|||||||
hasktags *hs
|
hasktags *hs
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o *.hi *~
|
rm -f *.o *.hi *~ 1 2
|
||||||
|
|
||||||
Clean: clean
|
Clean: clean
|
||||||
rm -f hledger overview TAGS tags
|
rm -f hledger hledgeropt overview TAGS tags
|
||||||
|
3
NOTES
3
NOTES
@ -1,7 +1,8 @@
|
|||||||
hledger project notes
|
hledger project notes
|
||||||
|
|
||||||
* TO DO
|
* TO DO
|
||||||
** bugs
|
** bugs/cleanup
|
||||||
|
*** rename EntryTransaction/Transaction
|
||||||
** ledger features
|
** ledger features
|
||||||
*** print command
|
*** print command
|
||||||
*** handle mixed amounts, non-money currencies
|
*** handle mixed amounts, non-money currencies
|
||||||
|
Loading…
Reference in New Issue
Block a user