2025-01-05 09:07:55 +02:00
|
|
|
include make/compile_flags.mk
|
|
|
|
|
|
2024-10-09 10:16:38 +00:00
|
|
|
# Create a globally-consistent, build-input identifier.
|
2026-01-23 11:05:34 +04:00
|
|
|
VERSION_TAG = $(shell git describe --abbrev=40 --broken --tags --always --match 'v*')
|
2020-05-26 16:31:21 +02:00
|
|
|
VERSION_CHECK = @$(call print, "Building master with date version tag")
|
|
|
|
|
|
2024-10-23 09:52:23 +02:00
|
|
|
DOCKER_RELEASE_HELPER = docker run \
|
|
|
|
|
-it \
|
|
|
|
|
--rm \
|
|
|
|
|
--user $(shell id -u):$(shell id -g) \
|
|
|
|
|
-v $(shell pwd):/tmp/build/litd \
|
|
|
|
|
-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 \
|
|
|
|
|
litd-release-helper
|
|
|
|
|
|
2020-10-08 09:34:46 +02:00
|
|
|
BUILD_SYSTEM = darwin-amd64 \
|
2023-02-27 13:11:28 +01:00
|
|
|
darwin-arm64 \
|
2020-05-26 16:31:21 +02:00
|
|
|
linux-386 \
|
|
|
|
|
linux-amd64 \
|
|
|
|
|
linux-armv6 \
|
|
|
|
|
linux-armv7 \
|
|
|
|
|
linux-arm64 \
|
2023-05-16 16:40:36 +02:00
|
|
|
windows-amd64
|
2020-05-26 16:31:21 +02:00
|
|
|
|
2025-01-05 09:07:55 +02:00
|
|
|
LND_RELEASE_TAGS = litd $(COMPILE_TAGS)
|
2020-05-26 16:31:21 +02:00
|
|
|
|
|
|
|
|
# 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),)
|
|
|
|
|
LND_RELEASE_TAGS = $(tags)
|
|
|
|
|
endif
|