all repos — website @ bcc39f9b443e23d034523ec72e035c73b7ab9a55

My website

make: compress xsl files
Alan Pearce alan@alanpearce.eu
Mon, 15 Apr 2024 23:22:16 +0200
commit

bcc39f9b443e23d034523ec72e035c73b7ab9a55

parent

76009b87c664c143c4a861257b87c79b2b0814c0

1 files changed, 13 insertions(+), 1 deletions(-)

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) $< > $@