aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-09-05 20:37:19 -0500
committerFurkan Sahin <furkan-dev@proton.me>2021-09-05 20:37:19 -0500
commitc36afa4b348a5450c59645b2be4e513a408fb54d (patch)
tree790801a4ccd23190c6b08a02a6d92c4709ce6010 /Makefile
parent988becbc29376314b560927043669ba32deaf0d5 (diff)
parent4b964d0d7b0d77d4cfcc6ddc1be1d3373cef82b2 (diff)
Merge branch 'upstream' into ppa
Merge v0.1.0
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)/