aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-09-03 21:34:10 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-09-03 21:36:01 +0200
commit5f2b62e776aaab6b8c3acbbf39ba2e9f88538298 (patch)
tree6ba0d4a592055cdac782d4e7e0426a47428f6c0d /Makefile
parent08dcb18a941a80a3b37c14c8d64dd3a229e86ab1 (diff)
downloadapkdoc-5f2b62e776aaab6b8c3acbbf39ba2e9f88538298.tar.gz
apkdoc-5f2b62e776aaab6b8c3acbbf39ba2e9f88538298.tar.bz2
apkdoc-5f2b62e776aaab6b8c3acbbf39ba2e9f88538298.zip
ref: Strip output for leaner bin
Diffstat (limited to 'Makefile')
-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)