diff --git a/Justfile b/Justfile index 3fd51782c..6cde142c3 100644 --- a/Justfile +++ b/Justfile @@ -547,8 +547,8 @@ INSTALLING: for e in hledger hledger-ui hledger-web ; do mv bin/old/$e bin/old/$e-{{ VER }}; echo "bin/old/$e-{{ VER }}"; done # install the hledger executables with ghc-debug support to bin/hledger*-dbg -@installdbg: - $STACK install --local-bin-path bin --flag hledger-lib:ghcdebug --flag hledger:ghcdebug --flag hledger-ui:ghcdebug --flag hledger-web:ghcdebug +@installdbg *STACKARGS: + $STACK install --local-bin-path bin --flag '*:ghcdebug' {{ STACKARGS }} for e in hledger hledger-ui hledger-web ; do mv bin/$e bin/$e-dbg; echo "bin/$e-dbg"; done # # make must be GNU Make 4.3+ diff --git a/doc/DEVFAQ.md b/doc/DEVFAQ.md index bb6c117cf..783c01d48 100644 --- a/doc/DEVFAQ.md +++ b/doc/DEVFAQ.md @@ -59,7 +59,7 @@ You might need to stop background builders like HLS, to avoid a fight over the b Then build lib and executable(s) with the `ghcdebug` flag: ```cli -$ stack build --flag hledger-lib:ghcdebug --flag hledger:ghcdebug --flag hledger-ui:ghcdebug --flag hledger-web:ghcdebug +$ stack build --flag='*:ghcdebug' ``` When the build is right, --version should mention ghc-debug: