From 885d8dd8dc7728aeb8a86a3a89f1cb35b72fa1dc Mon Sep 17 00:00:00 2001 From: horus_arch Date: Fri, 2 Sep 2016 17:24:03 +0200 Subject: Improved the Makefile --- Makefile | 4 ++-- 1 file 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) -- cgit v1.2.3