diff options
author | Alan Pearce | 2024-04-15 23:22:16 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-15 23:22:16 +0200 |
commit | bcc39f9b443e23d034523ec72e035c73b7ab9a55 (patch) | |
tree | 46550a2e9dfbc3098e438b80f48842274567be98 | |
parent | 76009b87c664c143c4a861257b87c79b2b0814c0 (diff) | |
download | website-bcc39f9b443e23d034523ec72e035c73b7ab9a55.tar.lz website-bcc39f9b443e23d034523ec72e035c73b7ab9a55.tar.zst website-bcc39f9b443e23d034523ec72e035c73b7ab9a55.zip |
make: compress xsl files
-rw-r--r-- | Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
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) $< > $@ |