more robust compression
This commit is contained in:
17
scripts/Makefile.static
Normal file
17
scripts/Makefile.static
Normal 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 $<
|
||||
Reference in New Issue
Block a user