Skip to content

Commit

Permalink
feat(rules): Make output compression more easily configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Sep 21, 2024
1 parent a1cabd2 commit 72c5ea7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rules/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 72c5ea7

Please sign in to comment.