From 873afb47cd8ad44147e9c065ebbf8b5bf0e1ef00 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Fri, 5 Feb 2021 13:01:45 +0000 Subject: [PATCH] strip debug symbols in makefile --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8613bce..33bb3d2 100644 --- a/Makefile +++ b/Makefile @@ -51,6 +51,13 @@ version: python3 version.py auto version.go compile: + $(info Downloading deps) + $(GOBINARY) mod download + $(info Building) + mkdir -p build + cd build && CGO_ENABLED=0 $(GOBINARY) build -ldflags="-s -w" -o ./jfa-go ../*.go + +compile-debug: $(info Downloading deps) $(GOBINARY) mod download $(info Building) @@ -90,4 +97,4 @@ install: all: configuration npm email version typescript bundle-css swagger copy embed compile all-external: configuration npm email version ts-debug bundle-css swagger copy noembed compile -debug: configuration npm email version ts-debug bundle-css swagger copy noembed compile +debug: configuration npm email version ts-debug bundle-css swagger copy noembed compile-debug