aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index cba0764..e5bf8e9 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 @@ build:
-o $(OUT) \
.
-install: build
+install:
install -Dm755 $(OUT) $(BINDIR)/$(BIN)
-compress: build
+compress:
upx --best --ultra-brute $(OUT)