aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-06-25 18:37:11 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-06-25 18:37:11 +0200
commit91d413b3a15a15fd8b710d8f5a1532d2e3de6f05 (patch)
tree621b9880485445da3df09c08bd5524f187538e15 /Makefile
parent438aa0e19b628923482dbc3fadcbb2e1ecfd5d7a (diff)
downloadlens-91d413b3a15a15fd8b710d8f5a1532d2e3de6f05.tar.gz
lens-91d413b3a15a15fd8b710d8f5a1532d2e3de6f05.tar.bz2
lens-91d413b3a15a15fd8b710d8f5a1532d2e3de6f05.zip
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files 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 \