tools: make ghci-web creates required symlinks

These are needed to run hledger-web from the top directory.
This commit is contained in:
Simon Michael 2017-04-29 12:15:19 -07:00
parent 8261c26c43
commit 93f637c766

View File

@ -276,34 +276,34 @@ build: \
# ) # )
# $(AUTOBUILD) hledger-web/app/main.hs -o bin/hledger-webdev $(AUTOBUILDFLAGS) $(WEBLANGEXTS) --run -B --port 5001 --base-url http://localhost:5001 -f webtest.j # $(AUTOBUILD) hledger-web/app/main.hs -o bin/hledger-webdev $(AUTOBUILDFLAGS) $(WEBLANGEXTS) --run -B --port 5001 --base-url http://localhost:5001 -f webtest.j
# link-web-dirs: config messages static templates \ link-web-dirs: config messages static templates \
# $(call def-help,link-web-dirs,\ $(call def-help,link-web-dirs,\
# \ \
# ) )
# config: \ config: \
# $(call def-help,config,\ $(call def-help,config,\
# \ \
# ) )
# ln -sf hledger-web/$@ ln -sf hledger-web/$@
# messages: \ messages: \
# $(call def-help,messages,\ $(call def-help,messages,\
# \ \
# ) )
# ln -sf hledger-web/$@ ln -sf hledger-web/$@
# static: \ static: \
# $(call def-help,static,\ $(call def-help,static,\
# \ \
# ) )
# ln -sf hledger-web/$@ ln -sf hledger-web/$@
# templates: \ templates: \
# $(call def-help,templates,\ $(call def-help,templates,\
# \ \
# ) )
# ln -sf hledger-web/$@ ln -sf hledger-web/$@
# sp: \ # sp: \
# $(call def-help,sp,\ # $(call def-help,sp,\
@ -811,7 +811,7 @@ ghci-ui: \
# $(call def-help,ghci-ui, start a GHCI REPL and load the hledger-lib, hledger and hledger-ui packages) # $(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: \ ghci-web: link-web-dirs \
# $(call def-help,ghci-web, start a GHCI REPL and load the hledger-lib, hledger and hledger-web packages) # $(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