mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-09 10:17:34 +03:00
tools: makefile build cleanups
This commit is contained in:
parent
71beb27503
commit
98255dbeb0
16
Makefile
16
Makefile
@ -199,7 +199,8 @@ sp:
|
|||||||
# force a compile even if binary exists, since we don't specify dependencies for these
|
# force a compile even if binary exists, since we don't specify dependencies for these
|
||||||
.PHONY: bin/hledgerdev bin/hledger-prof bin/hledgeropt bin/hledger-webdev
|
.PHONY: bin/hledgerdev bin/hledger-prof bin/hledgeropt bin/hledger-webdev
|
||||||
|
|
||||||
# build hledger binary as quickly as possible
|
# build hledger developer binary, ie as quickly as possible
|
||||||
|
# requires cabal macros, generated by doing a cabal build in hledger/
|
||||||
bin/hledgerdev:
|
bin/hledgerdev:
|
||||||
$(GHC) $(MAIN) -o bin/hledgerdev $(BUILDFLAGS)
|
$(GHC) $(MAIN) -o bin/hledgerdev $(BUILDFLAGS)
|
||||||
|
|
||||||
@ -215,15 +216,18 @@ bin/hledgerdev.ghcall: \
|
|||||||
bin/hledgerdev.ghc-7.0.4 \
|
bin/hledgerdev.ghc-7.0.4 \
|
||||||
# bin/hledgerdev.ghc-6.12.3 \
|
# bin/hledgerdev.ghc-6.12.3 \
|
||||||
|
|
||||||
# build the fastest binary we can
|
# build the "production" optimised cabal build with profiling enabled. Assumes a cabal sandbox.
|
||||||
bin/hledgeropt:
|
bin/hledger:
|
||||||
$(GHC) $(MAIN) -o $@ $(BUILDFLAGS) -O2 # -fvia-C # -fexcess-precision -optc-O3 -optc-ffast-math
|
rm -f bin/hledger
|
||||||
|
cabal install --disable-library-profiling --disable-executable-profiling ./hledger-lib ./hledger \
|
||||||
|
&& mv .cabal-sandbox/bin/hledger bin/hledger
|
||||||
|
|
||||||
# build the production (cabal) build with profiling enabled.
|
# build the "production" cabal build with profiling enabled.
|
||||||
bin/hledger-prof:
|
bin/hledger-prof:
|
||||||
cabal install -p --enable-executable-profiling --ghc-options=-fprof-auto ./hledger-lib ./hledger \
|
cabal install -p --enable-executable-profiling --ghc-options=-fprof-auto ./hledger-lib ./hledger \
|
||||||
&& mv .cabal-sandbox/bin/hledger bin/hledger-prof
|
&& mv .cabal-sandbox/bin/hledger bin/hledger-prof
|
||||||
|
|
||||||
|
rm -f bin/hledger-prof
|
||||||
# build the dev build with profiling enabled.
|
# build the dev build with profiling enabled.
|
||||||
# not working with cabal sandbox
|
# not working with cabal sandbox
|
||||||
# bin/hledgerdev-prof:
|
# bin/hledgerdev-prof:
|
||||||
@ -556,7 +560,7 @@ ghciweb:
|
|||||||
repllib:
|
repllib:
|
||||||
(cd hledger-lib; cabal repl)
|
(cd hledger-lib; cabal repl)
|
||||||
|
|
||||||
repl:
|
replcli:
|
||||||
(cd hledger; cabal repl exe:hledger)
|
(cd hledger; cabal repl exe:hledger)
|
||||||
|
|
||||||
replweb:
|
replweb:
|
||||||
|
Loading…
Reference in New Issue
Block a user