diff --git a/backend/Makefile.in b/backend/Makefile.in index 79826f2..9994bb3 100644 --- a/backend/Makefile.in +++ b/backend/Makefile.in @@ -14,7 +14,7 @@ csv: up: .backend.lock .backend.lock: main.scm - @GUILE_AUTO_COMPILE=0 @GUILE@ ./main.scm > yacswa-backend.log & PID=$$!; echo $${PID} > .backend.lock && echo "Server spawned with PID $${PID}" + @GUILE_AUTO_COMPILE=0 @GUILE@ ./main.scm > yacswa-backend.log 2>&1 & PID=$$!; echo $${PID} > .backend.lock && echo "Server spawned with PID $${PID}" && echo "Allow for " down: @PID=`cat .backend.lock` && kill -15 $${PID} && rm .backend.lock && echo "Server on PID $${PID} down."; unset PID diff --git a/frontend/Makefile.in b/frontend/Makefile.in index 260bf7e..d76246f 100644 --- a/frontend/Makefile.in +++ b/frontend/Makefile.in @@ -1,14 +1,17 @@ +SOURCES := $(shell find src -type f) +WWW := $(shell find www -type f) + .PHONY: all clean all: www/elm.js -www/elm.js: src/*.elm +www/elm.js: $(SOURCES) @ELM@ make src/Main.elm --output=www/elm.js install: www/elm.js @public_dir@ -@public_dir@: +@public_dir@: $(WWW) @mkdir -p @public_dir@ @cp -r ./www/ @public_dir@