From d93251e71421b3bd73093c8481774746e61c2f8b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 21 Oct 2023 18:22:56 +0200 Subject: [PATCH] build: improve readability of Go -ldflags --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9057308..1cc924e 100644 --- a/Makefile +++ b/Makefile @@ -11,9 +11,9 @@ RUNDIR ?= /run sharedstatedir := /var/lib config_path := $(SYSCONFDIR)/soju/config admin_socket_path := $(RUNDIR)/soju/admin -goflags := $(GOFLAGS) -ldflags=" \ - -X 'git.sr.ht/~emersion/soju/config.DefaultPath=$(config_path)' \ - -X 'git.sr.ht/~emersion/soju/config.DefaultUnixAdminPath=$(admin_socket_path)'" +goldflags := -X 'git.sr.ht/~emersion/soju/config.DefaultPath=$(config_path)' \ + -X 'git.sr.ht/~emersion/soju/config.DefaultUnixAdminPath=$(admin_socket_path)' +goflags := $(GOFLAGS) -ldflags="$(goldflags)" commands := soju sojuctl sojudb man_pages := doc/soju.1 doc/sojuctl.1