From bcc39f9b443e23d034523ec72e035c73b7ab9a55 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 15 Apr 2024 23:22:16 +0200 Subject: make: compress xsl files --- Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 731b001..41b4666 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ clean: rm -rf ./public rm -rf ./.*stamp -to_compress := $(shell fd . public --type=file -e html -e xml -e txt -e asc) +to_compress := $(shell fd . public --type=file -e html -e xml -e xsl -e txt -e asc) brotli_files := $(patsubst %, %.br, $(to_compress)) gzip_files := $(patsubst %, %.gz, $(to_compress)) zstd_files := $(patsubst %, %.zst, $(to_compress)) @@ -31,6 +31,10 @@ zstd_files := $(patsubst %, %.zst, $(to_compress)) @echo $@ $(brotli) $< +%.xsl.br: %.xsl + @echo $@ + $(brotli) $< + %.txt.br: %.txt @echo $@ $(brotli) $< @@ -47,6 +51,10 @@ zstd_files := $(patsubst %, %.zst, $(to_compress)) @echo $@ $(gzip) $< +%.xsl.gz: %.xsl + @echo $@ + $(gzip) $< + %.txt.gz: %.txt @echo $@ $(gzip) $< @@ -63,6 +71,10 @@ zstd_files := $(patsubst %, %.zst, $(to_compress)) @echo $@ $(zstd) $< > $@ +%.xsl.zst: %.xsl + @echo $@ + $(zstd) $< > $@ + %.txt.zst: %.txt @echo $@ $(zstd) $< > $@ -- cgit 1.4.1