From 05a77ff655bd1a18662bfbf5e13b5fe261339ebb Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Mon, 7 Sep 2020 12:09:34 -0400 Subject: [PATCH] Fix make target for logging to the local directory --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index bb5106f..35d75a4 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,8 @@ .PHONY: default clean glow run log +LOGFILE := debug.log + default: glow clean: @@ -11,9 +13,8 @@ glow: go build run: clean glow - export GLOW_UI_LOGFILE=debug.log - ./glow + GLOW_UI_LOGFILE=$(LOGFILE) ./glow log: - > debug.log - tail -f debug.log + > $(LOGFILE) + tail -f $(LOGFILE)