make: compress xsl files
Alan Pearce alan@alanpearce.eu
Mon, 15 Apr 2024 23:22:16 +0200
1 files changed, 13 insertions(+), 1 deletions(-)
jump to
M Makefile → 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)) @@ -28,6 +28,10 @@ @echo $@ $(brotli) $< %.xml.br: %.xml + @echo $@ + $(brotli) $< + +%.xsl.br: %.xsl @echo $@ $(brotli) $< @@ -47,6 +51,10 @@ %.xml.gz: %.xml @echo $@ $(gzip) $< +%.xsl.gz: %.xsl + @echo $@ + $(gzip) $< + %.txt.gz: %.txt @echo $@ $(gzip) $< @@ -60,6 +68,10 @@ @echo $@ $(zstd) $< > $@ %.xml.zst: %.xml + @echo $@ + $(zstd) $< > $@ + +%.xsl.zst: %.xsl @echo $@ $(zstd) $< > $@