tools: tweak some cabal make rules

This commit is contained in:
Simon Michael 2015-06-28 14:18:23 -07:00
parent 2d46ee4448
commit 4da22cd846

View File

@ -304,13 +304,15 @@ bin/hledgerdev.ghcall: \
build hledger with the main supported GHC versions\ build hledger with the main supported GHC versions\
) )
#CABALINSTALLDIR=~/.cabal
CABALINSTALLDIR=.cabal-sandbox
bin/hledger: \ bin/hledger: \
$(call def-help,bin/hledger,\ $(call def-help,bin/hledger,\
build the "production" optimised cabal build with profiling enabled. Assumes a cabal sandbox.\ build the "production" optimised cabal build with profiling enabled.\
) )
rm -f bin/hledger rm -f bin/hledger
cabal install --disable-profiling ./hledger-lib ./hledger \ cabal install --disable-profiling ./hledger-lib ./hledger \
&& mv .cabal-sandbox/bin/hledger bin/hledger && mv $(CABALINSTALLDIR)/bin/hledger bin/hledger
bin/hledger-prof: \ bin/hledger-prof: \
$(call def-help,bin/hledger-prof,\ $(call def-help,bin/hledger-prof,\
@ -318,7 +320,7 @@ bin/hledger-prof: \
) )
rm -f bin/hledger-prof rm -f bin/hledger-prof
cabal install --enable-profiling --ghc-options=-fprof-auto ./hledger-lib ./hledger \ cabal install --enable-profiling --ghc-options=-fprof-auto ./hledger-lib ./hledger \
&& mv .cabal-sandbox/bin/hledger bin/hledger-prof && mv $(CABALINSTALLDIR)/bin/hledger 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