2020-04-21 11:18:57 +03:00
|
|
|
VERSION_TAG = $(shell date +%Y%m%d)-01
|
|
|
|
VERSION_CHECK = @$(call print, "Building master with date version tag")
|
|
|
|
|
2021-01-08 12:40:17 +03:00
|
|
|
DOCKER_RELEASE_HELPER = docker run \
|
|
|
|
-it \
|
|
|
|
--rm \
|
|
|
|
--user $(shell id -u):$(shell id -g) \
|
|
|
|
-v $(shell pwd):/tmp/build/lnd \
|
|
|
|
-v $(shell bash -c "go env GOCACHE || (mkdir -p /tmp/go-cache; echo /tmp/go-cache)"):/tmp/build/.cache \
|
|
|
|
-v $(shell bash -c "go env GOMODCACHE || (mkdir -p /tmp/go-modcache; echo /tmp/go-modcache)"):/tmp/build/.modcache \
|
|
|
|
-e SKIP_VERSION_CHECK \
|
|
|
|
lnd-release-helper
|
|
|
|
|
2020-11-09 12:31:00 +03:00
|
|
|
BUILD_SYSTEM = darwin-amd64 \
|
2021-02-17 03:19:52 +03:00
|
|
|
darwin-arm64 \
|
2020-04-21 11:18:57 +03:00
|
|
|
dragonfly-amd64 \
|
|
|
|
freebsd-386 \
|
|
|
|
freebsd-amd64 \
|
|
|
|
freebsd-arm \
|
|
|
|
illumos-amd64 \
|
|
|
|
linux-386 \
|
|
|
|
linux-amd64 \
|
|
|
|
linux-armv6 \
|
|
|
|
linux-armv7 \
|
|
|
|
linux-arm64 \
|
|
|
|
linux-ppc64 \
|
|
|
|
linux-ppc64le \
|
|
|
|
linux-mips \
|
|
|
|
linux-mipsle \
|
|
|
|
linux-mips64 \
|
|
|
|
linux-s390x \
|
|
|
|
netbsd-386 \
|
|
|
|
netbsd-amd64 \
|
|
|
|
netbsd-arm64 \
|
|
|
|
openbsd-386 \
|
|
|
|
openbsd-amd64 \
|
|
|
|
windows-386 \
|
|
|
|
windows-amd64 \
|
|
|
|
windows-arm
|
|
|
|
|
|
|
|
RELEASE_TAGS = autopilotrpc signrpc walletrpc chainrpc invoicesrpc watchtowerrpc
|
|
|
|
|
|
|
|
# One can either specify a git tag as the version suffix or one is generated
|
|
|
|
# from the current date.
|
|
|
|
ifneq ($(tag),)
|
|
|
|
VERSION_TAG = $(tag)
|
2020-04-24 15:27:48 +03:00
|
|
|
VERSION_CHECK = ./scripts/release.sh check-tag "$(VERSION_TAG)"
|
2020-04-21 11:18:57 +03:00
|
|
|
endif
|
|
|
|
|
|
|
|
# By default we will build all systems. But with the 'sys' tag, a specific
|
|
|
|
# system can be specified. This is useful to release for a subset of
|
|
|
|
# systems/architectures.
|
|
|
|
ifneq ($(sys),)
|
|
|
|
BUILD_SYSTEM = $(sys)
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Use all build tags by default but allow them to be overwritten.
|
|
|
|
ifneq ($(tags),)
|
|
|
|
RELEASE_TAGS = $(tags)
|
|
|
|
endif
|