more robust compression

This commit is contained in:
2025-11-26 22:03:53 +02:00
parent ea5a66ac28
commit 317dd32952
2 changed files with 18 additions and 10 deletions

17
scripts/Makefile.static Normal file
View File

@@ -0,0 +1,17 @@
SRCS = $(wildcard *.html *.xml *.txt *.css *.map *.pdf)
ZSTD = $(patsubst %,%.zst,$(SRCS))
BR = $(patsubst %,%.br,$(SRCS))
GZ = $(patsubst %,%.gz,$(SRCS))
.PHONY: all
all: $(ZSTD) $(BR) $(GZ)
%.br: %
brotli $<
%.zst: %
zstd -19 $<
%.gz: %
zopfli $<