aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-09-03 00:02:31 -0500
committerFurkan Sahin <furkan-dev@proton.me>2021-09-03 00:02:31 -0500
commit571abf917bb3a6aa7ac7dd40969ed59ce84d78db (patch)
treee148102ade519928ede6552724955cf7696f8afa /Makefile
parent2af7117891cdb67758219a7075f39c05dc02f3f5 (diff)
Add clean option and fix issue with dir propegation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 424c67d..dd6031f 100644
--- a/Makefile
+++ b/Makefile
@@ -8,8 +8,14 @@ endif
CMD := planr
+ifdef DEBUG
+ FLAGS=-ldflags=-w
+endif
+
+MAIN_PKG := ./cmd/planr/main.go
+
$(CMD):
- go build -o $(CMD) ./cmd/planr/main.go
+ go build $(FLAGS) -o $(CMD) $(MAIN_PKG)
install:
mkdir -p $(DESTDIR)$(PREFIX)$(BINDIR)/