tools: make: document ghci rules, add ghcid rules
This commit is contained in:
parent
dc191ec76e
commit
89a627b0c2
43
Makefile
43
Makefile
@ -843,35 +843,47 @@ quickheap-%: hledgerprof samplejournals \
|
|||||||
# (cd hledger-web; cabal repl exe:hledger-web)
|
# (cd hledger-web; cabal repl exe:hledger-web)
|
||||||
|
|
||||||
# multi-package GHCI prompts
|
# multi-package GHCI prompts
|
||||||
ghci: \
|
ghci: $(call def-help,ghci, start ghci REPL on hledger-lib + hledger)
|
||||||
# $(call def-help,ghci, start a GHCI REPL and load the hledger-lib and hledger packages)
|
|
||||||
$(STACK) exec -- $(GHCI) $(BUILDFLAGS) hledger/Hledger/Cli/Main.hs
|
$(STACK) exec -- $(GHCI) $(BUILDFLAGS) hledger/Hledger/Cli/Main.hs
|
||||||
|
|
||||||
ghci-prof: \
|
ghci-prof: $(call def-help,ghci-prof, start ghci REPL on hledger-lib + hledger with profiling information)
|
||||||
# $(call def-help,ghci, start a GHCI REPL and load the hledger-lib and hledger packages, with profiling information)
|
|
||||||
stack build --profile hledger --only-dependencies
|
stack build --profile hledger --only-dependencies
|
||||||
$(STACK) exec -- $(GHCI) $(BUILDFLAGS) -fexternal-interpreter -prof -fprof-auto hledger/Hledger/Cli/Main.hs
|
$(STACK) exec -- $(GHCI) $(BUILDFLAGS) -fexternal-interpreter -prof -fprof-auto hledger/Hledger/Cli/Main.hs
|
||||||
|
|
||||||
ghci-dev: \
|
ghci-dev: $(call def-help,ghci-dev, start ghci REPL on hledger-lib + hledger + dev.hs script)
|
||||||
# $(call def-help,ghci, start a GHCI REPL and load the dev.hs script plus hledger-lib and hledger)
|
|
||||||
$(STACK) exec -- $(GHCI) $(BUILDFLAGS) -fno-warn-unused-imports -fno-warn-unused-binds dev.hs
|
$(STACK) exec -- $(GHCI) $(BUILDFLAGS) -fno-warn-unused-imports -fno-warn-unused-binds dev.hs
|
||||||
|
|
||||||
ghci-ui: \
|
ghci-ui: $(call def-help,ghci-ui, start ghci REPL on hledger-lib + hledger + hledger-ui)
|
||||||
# $(call def-help,ghci-ui, start a GHCI REPL and load the hledger-lib, hledger and hledger-ui packages)
|
|
||||||
$(STACK) exec -- $(GHCI) $(BUILDFLAGS) hledger-ui/Hledger/UI/Main.hs
|
$(STACK) exec -- $(GHCI) $(BUILDFLAGS) hledger-ui/Hledger/UI/Main.hs
|
||||||
|
|
||||||
ghci-web: link-web-dirs \
|
ghci-web: link-web-dirs $(call def-help,ghci-web, start ghci REPL on hledger-lib + hledger + hledger-web)
|
||||||
# $(call def-help,ghci-web, start a GHCI REPL and load the hledger-lib, hledger and hledger-web packages)
|
|
||||||
$(STACK) exec -- $(GHCI) $(BUILDFLAGS) hledger-web/app/main.hs
|
$(STACK) exec -- $(GHCI) $(BUILDFLAGS) hledger-web/app/main.hs
|
||||||
|
|
||||||
ghci-api: \
|
ghci-api: (call def-help,ghci-api, start ghci REPL on hledger-lib + hledger + hledger-api)
|
||||||
# $(call def-help,ghci-api, start a GHCI REPL and load the hledger-lib, hledger and hledger-api packages)
|
|
||||||
$(STACK) exec -- $(GHCI) $(BUILDFLAGS) hledger-api/hledger-api.hs
|
$(STACK) exec -- $(GHCI) $(BUILDFLAGS) hledger-api/hledger-api.hs
|
||||||
|
|
||||||
ghcid-lib-doctest:
|
# ghci-all: $(call def-help,ghci-all, start ghci REPL on all the hledger)
|
||||||
ghcid --command 'cd hledger-lib; $(STACK) ghci hledger-lib:test:doctests' --test ':main' --reload hledger-lib
|
# $(STACK) exec -- $(GHCI) $(BUILDFLAGS) \
|
||||||
|
# hledger-ui/Hledger/UI/Main.hs \
|
||||||
|
# hledger-web/app/main.hs \
|
||||||
|
# hledger-api/hledger-api.hs \
|
||||||
|
|
||||||
samplejournals: \
|
ghcid-lib-doctest:
|
||||||
|
ghcid -c 'cd hledger-lib; $(STACK) ghci hledger-lib:test:doctests' --test ':main' --reload hledger-lib
|
||||||
|
|
||||||
|
ghcid: $(call def-help,ghcid, start ghcid autobuilder on hledger-lib + hledger)
|
||||||
|
ghcid -c 'make ghci'
|
||||||
|
|
||||||
|
ghcid-ui: $(call def-help,ghcid-ui, start ghcid autobuilder on hledger-lib + hledger + hledger-ui)
|
||||||
|
ghcid -c 'make ghci-ui'
|
||||||
|
|
||||||
|
ghcid-web: $(call def-help,ghcid-web, start ghcid autobuilder on hledger-lib + hledger + hledger-web)
|
||||||
|
ghcid -c 'make ghci-web'
|
||||||
|
|
||||||
|
ghcid-api: $(call def-help,ghcid-api, start ghcid autobuilder on hledger-lib + hledger + hledger-api)
|
||||||
|
ghcid -c 'make ghci-api'
|
||||||
|
|
||||||
|
samplejournals: $(call def-help,samplejournals, regenerate standard sample journals in examples/) \
|
||||||
examples/sample.journal \
|
examples/sample.journal \
|
||||||
examples/100x100x10.journal \
|
examples/100x100x10.journal \
|
||||||
examples/1000x1000x10.journal \
|
examples/1000x1000x10.journal \
|
||||||
@ -883,7 +895,6 @@ samplejournals: \
|
|||||||
examples/ascii.journal \
|
examples/ascii.journal \
|
||||||
examples/chinese.journal \
|
examples/chinese.journal \
|
||||||
examples/mixed.journal \
|
examples/mixed.journal \
|
||||||
$(call def-help,samplejournals, regenerate standard sample journals in examples/ )
|
|
||||||
|
|
||||||
examples/sample.journal:
|
examples/sample.journal:
|
||||||
true # XXX should probably regenerate this
|
true # XXX should probably regenerate this
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user