build: improve readability of Go -ldflags
This commit is contained in:
parent
5475a41917
commit
d93251e714
6
Makefile
6
Makefile
@ -11,9 +11,9 @@ RUNDIR ?= /run
|
|||||||
sharedstatedir := /var/lib
|
sharedstatedir := /var/lib
|
||||||
config_path := $(SYSCONFDIR)/soju/config
|
config_path := $(SYSCONFDIR)/soju/config
|
||||||
admin_socket_path := $(RUNDIR)/soju/admin
|
admin_socket_path := $(RUNDIR)/soju/admin
|
||||||
goflags := $(GOFLAGS) -ldflags=" \
|
goldflags := -X 'git.sr.ht/~emersion/soju/config.DefaultPath=$(config_path)' \
|
||||||
-X 'git.sr.ht/~emersion/soju/config.DefaultPath=$(config_path)' \
|
-X 'git.sr.ht/~emersion/soju/config.DefaultUnixAdminPath=$(admin_socket_path)'
|
||||||
-X 'git.sr.ht/~emersion/soju/config.DefaultUnixAdminPath=$(admin_socket_path)'"
|
goflags := $(GOFLAGS) -ldflags="$(goldflags)"
|
||||||
commands := soju sojuctl sojudb
|
commands := soju sojuctl sojudb
|
||||||
man_pages := doc/soju.1 doc/sojuctl.1
|
man_pages := doc/soju.1 doc/sojuctl.1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user