summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b5b86a7..ef68255 100644
--- a/Makefile
+++ b/Makefile
@@ -7,14 +7,14 @@ PID := /tmp/scribbled.pid
CONFIG_FILE := config.json
TEMPLATE_DIR := templates
-all: run serve
+all: run build serve
build: $(APP)
cd $(SOURCE_DIR) && go build -o $(APP)
$(APP) := $(GO_FILES)
-run: kill build $(CONFIG_FILE)
+run: kill $(CONFIG_FILE)
@#PORT=8765 $(SOURCE_DIR)/$(APP) -config $(CONFIG_FILE) & echo $$! > $(PID)
@$(SOURCE_DIR)/$(APP) -config $(CONFIG_FILE) & echo $$! > $(PID)