all repos — homestead @ 65370993d189c1a1ccb9ba29af3dfe6a1cb5b06b

Code for my website

make: compress xsl files

Alan Pearce
commit

65370993d189c1a1ccb9ba29af3dfe6a1cb5b06b

parent

7f03e7ee5d7130ca9beb1547819f2a2502feb2aa

1 file changed, 13 insertions(+), 1 deletion(-)

jump to
M MakefileMakefile
@@ -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) $< > $@