Merge pull request #152 from CosmWasm/improve-makefile
Convert -tags argument to comma separated list
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# docker build . -t cosmwasm/wasm:latest
|
||||
# docker run --rm -it cosmwasm/wasm:latest /bin/sh
|
||||
# docker build . -t cosmwasm/wasmd:latest
|
||||
# docker run --rm -it cosmwasm/wasmd:latest /bin/sh
|
||||
FROM cosmwasm/go-ext-builder:0.8.2-alpine AS builder
|
||||
|
||||
RUN apk add git
|
||||
|
||||
8
Makefile
8
Makefile
@@ -40,10 +40,10 @@ endif
|
||||
build_tags += $(BUILD_TAGS)
|
||||
build_tags := $(strip $(build_tags))
|
||||
|
||||
whitespace :=
|
||||
whitespace += $(whitespace)
|
||||
empty :=
|
||||
space := $(empty) $(empty)
|
||||
comma := ,
|
||||
build_tags_comma_sep := $(subst $(whitespace),$(comma),$(build_tags))
|
||||
build_tags_comma_sep := $(subst $(space),$(comma),$(build_tags))
|
||||
|
||||
# process linker flags
|
||||
|
||||
@@ -60,7 +60,7 @@ endif
|
||||
ldflags += $(LDFLAGS)
|
||||
ldflags := $(strip $(ldflags))
|
||||
|
||||
BUILD_FLAGS := -tags "$(build_tags)" -ldflags '$(ldflags)' -trimpath
|
||||
BUILD_FLAGS := -tags $(build_tags_comma_sep) -ldflags '$(ldflags)' -trimpath
|
||||
|
||||
# The below include contains the tools target.
|
||||
include contrib/devtools/Makefile
|
||||
|
||||
Reference in New Issue
Block a user