diff --git a/Makefile b/Makefile
index cba07640c64d9a96fa62cb9ab95a504d557afa5f..e5bf8e969c0ba1a495a15f815588997245e31e15 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
-PREFIX ?= /usr/local
-BINDIR ?= $(PREFIX)/bin
+PREFIX ?=/usr/local
+BINDIR ?=$(PREFIX)/bin
BIN?=apkdoc
OUT=./bin/$(BIN)
GO_RUN?= go run -v
-GO_BUILD?= go build -v
+GO_BUILD?= go build -v -ldflags "-s -w"
all: build
@@ -15,8 +15,8 @@ $(GO_BUILD) \
-o $(OUT) \
.
-install: build
+install:
install -Dm755 $(OUT) $(BINDIR)/$(BIN)
-compress: build
+compress:
upx --best --ultra-brute $(OUT)