From 93f637c76697efc81462ac45945a3cd339b4e9d0 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 29 Apr 2017 12:15:19 -0700 Subject: [PATCH] tools: make ghci-web creates required symlinks These are needed to run hledger-web from the top directory. --- Makefile | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/Makefile b/Makefile index 16ba9d443..7d9f4502e 100644 --- a/Makefile +++ b/Makefile @@ -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 -# link-web-dirs: config messages static templates \ -# $(call def-help,link-web-dirs,\ -# \ -# ) +link-web-dirs: config messages static templates \ + $(call def-help,link-web-dirs,\ + \ + ) -# config: \ -# $(call def-help,config,\ -# \ -# ) -# ln -sf hledger-web/$@ +config: \ + $(call def-help,config,\ + \ + ) + ln -sf hledger-web/$@ -# messages: \ -# $(call def-help,messages,\ -# \ -# ) -# ln -sf hledger-web/$@ +messages: \ + $(call def-help,messages,\ + \ + ) + ln -sf hledger-web/$@ -# static: \ -# $(call def-help,static,\ -# \ -# ) -# ln -sf hledger-web/$@ +static: \ + $(call def-help,static,\ + \ + ) + ln -sf hledger-web/$@ -# templates: \ -# $(call def-help,templates,\ -# \ -# ) -# ln -sf hledger-web/$@ +templates: \ + $(call def-help,templates,\ + \ + ) + ln -sf hledger-web/$@ # 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) $(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) $(STACK) exec -- $(GHCI) $(BUILDFLAGS) hledger-web/app/main.hs