Detect OS for release-sample make target

This commit is contained in:
Antonio SJ Musumeci 2026-04-06 23:21:33 -05:00
parent 9e2e1afafa
commit eabd76e877
2 changed files with 123 additions and 2 deletions

View file

@ -36,7 +36,8 @@ TOUCH ?= touch
BUILDDIR := build
GITHUB_REPO ?= "https://github.com/trapexit/mergerfs"
RELEASE_SAMPLE ?= "debian:13.amd64"
DEFAULT_RELEASE_SAMPLE := debian:13.amd64
ifndef GIT_REPO
ifneq ($(shell $(GIT) --version 2> /dev/null),)
@ -365,7 +366,8 @@ endef
release:
$(call build_release,"all")
release-sample:
$(call build_release,$(RELEASE_SAMPLE))
$(if $(RELEASE_SAMPLE),,$(eval RELEASE_SAMPLE := $(shell ./buildtools/detect-local-target 2>/dev/null)))
$(call build_release,$(if $(RELEASE_SAMPLE),$(RELEASE_SAMPLE),$(DEFAULT_RELEASE_SAMPLE)))
release-amd64:
$(call build_release,"amd64")
release-arm64: