From 72c5ea7222e2a63de72362781fb20d65b24e2f88 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Sat, 21 Sep 2024 23:51:37 +0300 Subject: [PATCH] feat(rules): Make output compression more easily configurable --- rules/rules.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rules/rules.mk b/rules/rules.mk index 285bd77..3d0b846 100644 --- a/rules/rules.mk +++ b/rules/rules.mk @@ -363,12 +363,13 @@ $(BUILDDIR)/last-commit: $$(forceiftagchange) | $(BUILDDIR) echo $(GitVersion) > $@ DISTDIR ?= $(PROJECT)-$(if $(isTagged),$(FontVersion),$(GitVersion)) +DISTEXT ?= zip tar.zst $(DISTDIR): mkdir -p $@ .PHONY: dist -dist: $(DISTDIR).zip $(DISTDIR).tar.zst +dist: $(foreach EXT,$(DISTEXT),$(DISTDIR).$(EXT)) $(DISTDIR).tar.bz2 $(DISTDIR).tar.gz $(DISTDIR).tar.xz $(DISTDIR).zip: install-dist bsdtar -acf $@ $(DISTDIR)