diff options
author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-09-03 21:34:10 +0200 |
---|---|---|
committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-09-03 21:36:01 +0200 |
commit | 5f2b62e776aaab6b8c3acbbf39ba2e9f88538298 (patch) | |
tree | 6ba0d4a592055cdac782d4e7e0426a47428f6c0d /Makefile | |
parent | 08dcb18a941a80a3b37c14c8d64dd3a229e86ab1 (diff) | |
download | apkdoc-5f2b62e776aaab6b8c3acbbf39ba2e9f88538298.tar.gz apkdoc-5f2b62e776aaab6b8c3acbbf39ba2e9f88538298.tar.bz2 apkdoc-5f2b62e776aaab6b8c3acbbf39ba2e9f88538298.zip |
ref: Strip output for leaner bin
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) |