X-Git-Url: https://git.r.bdr.sh/rbdr/blog/blobdiff_plain/c4b892b16fb92c7d89eaee0b1588c52c8836216b..b12f5ad81b52ba47ac8859ae5d8fe32ec211fe57:/Makefile?ds=inline diff --git a/Makefile b/Makefile index b8c6820..0a4d393 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ build: prepare cargo build --profile $(profile) --target $(target) release: - @echo "Releasing $(target) to $(channel)" + @echo "Releasing target/$(target)/$(profile) to $(channel)" $(architectures): $(MAKE) -e target=$@ rpm @@ -28,12 +28,9 @@ package: $(architectures) ci: ifeq ($(GIT_REF),refs/heads/main) - @$(eval channel=unstable) + $(MAKE) -e profile=release -e channel=unstable package else ifneq (,$(findstring refs/tags/,$(GIT_REF))) - @$(eval channel=$(subst refs/tags/,,$(GIT_REF))) -endif -ifneq ($(channel),) - $(MAKE) -e channel=$(channel) package + $(MAKE) -e profile=release -e channel=$(subst refs/tags/,,$(GIT_REF)) package endif .PHONY: default build $(architectures) rpm package prepare set_rust ci release