From 91d413b3a15a15fd8b710d8f5a1532d2e3de6f05 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Sun, 25 Jun 2023 18:37:11 +0200 Subject: feat: Add make rules for upx compressing I don't know if that will work in the long run but I have added just in case. --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6987ced..c40550f 100644 --- a/Makefile +++ b/Makefile @@ -6,11 +6,17 @@ GO_TEST=go test -v -timeout 100ms -shuffle on -parallel `nproc` GO_BUILD=go build -v -ldflags '-w -s' GO_RUN=go run -v -all: build sass +all: build -build: +build: sass $(GO_BUILD) -o $(OUT) $(SERVER) +compress: build + upx -1 $(OUT) + +compress_into_oblivion: build + upx --best --ultra-brute $(OUT) + run: sass $(GO_RUN) $(SERVER) \ --log-level error \ -- cgit v1.2.3