summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-03 00:02:31 -0500
committerFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-03 00:02:31 -0500
commit287d029975b7718109f81b480079f375f7d8700a (patch)
tree2324f902ebc59ffda5afa2e7506e3fa0ac9b51b3 /Makefile
parentd078f6dc10eb265a5d88cd96adf86173d6d3ba2e (diff)
downloaddeb-planr-287d029975b7718109f81b480079f375f7d8700a.tar.xz
deb-planr-287d029975b7718109f81b480079f375f7d8700a.zip
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)/