aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRubén Beltrán del Río <jj@r.bdr.sh>2026-01-18 16:35:31 +0100
committerRubén Beltrán del Río <jj@r.bdr.sh>2026-01-18 16:49:45 +0100
commite22e1210b117c95f3aa7f877b3217c623f7bcfa9 (patch)
treef049ccb55e0a7825cf562e72480fe0326214041b /Makefile
parent6572d6cb8ceb83a9de85d30bf834adb51ef348d6 (diff)
Simplify CI command
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b842136..e7e7bd4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-profile := release
+profile := dev
target = $(shell rustc -vV | grep host | awk '{print $$2}')
channel := unstable
@@ -249,7 +249,8 @@ distribute: distribute-tar distribute-flatpak distribute-appimage distribute-pac
# Release ######################################################################
-release: lint build-containers package distribute
+release:
+ $(MAKE) profile=release build-containers package distribute
# Installation #################################################################
@@ -277,6 +278,16 @@ uninstall:
rm -f $(prefix)/share/locale/$$locale/LC_MESSAGES/systems.tranquil.Map.mo; \
done
+ci: lint
+# Installation #################################################################
+ifeq ($(GIT_REF),refs/heads/main)
+ $(MAKE) -e channel=unstable release
+else ifneq (,$(findstring refs/tags/,$(GIT_REF)))
+ $(MAKE) -e channel=$(subst refs/tags/,,$(GIT_REF)) release
+else
+ @echo "Not in CI environment."
+endif
+
.PHONY: default build test coverage format lint \
find_translatable_files extract_strings compile_translations \
update_flatpak_dependencies \