From 347d0cd1a73921a8cbc43798a7fbe2095791bbe9 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 17 Apr 2024 20:29:34 +0200 Subject: remove post-processing --- Makefile | 76 ---------------------------------------------------------------- 1 file changed, 76 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 526c21d..1160176 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,6 @@ .ONESHELL: .DELETE_ON_ERROR: -brotli := @brotli --force --no-copy-stat -gzip := @gzip --best --keep --force -zstd := @zstd --force --no-pass-through -19 --quiet --stdout -pr := @printf "%4s %s\n" - format: .formatstamp .formatstamp: @@ -18,75 +13,4 @@ clean: rm -rf ./public rm -rf ./.*stamp -to_compress := $(shell fd --hidden . 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)) - -%.html.br: %.html - @echo $@ - $(brotli) $< - -%.xml.br: %.xml - @echo $@ - $(brotli) $< - -%.xsl.br: %.xsl - @echo $@ - $(brotli) $< - -%.txt.br: %.txt - @echo $@ - $(brotli) $< - -%.asc.br: %.asc - @echo $@ - $(brotli) $< - -%.html.gz: %.html - @echo $@ - $(gzip) $< - -%.xml.gz: %.xml - @echo $@ - $(gzip) $< - -%.xsl.gz: %.xsl - @echo $@ - $(gzip) $< - -%.txt.gz: %.txt - @echo $@ - $(gzip) $< - -%.asc.gz: %.asc - @echo $@ - $(gzip) $< - -%.html.zst: %.html - @echo $@ - $(zstd) $< > $@ - -%.xml.zst: %.xml - @echo $@ - $(zstd) $< > $@ - -%.xsl.zst: %.xsl - @echo $@ - $(zstd) $< > $@ - -%.txt.zst: %.txt - @echo $@ - $(zstd) $< > $@ - -%.asc.zst: %.asc - @echo $@ - $(zstd) $< > $@ - -compress: .compressstamp - -.compressstamp: .formatstamp $(brotli_files) $(gzip_files) $(zstd_files) - @echo "Compressing output files..." - @touch .compressstamp - .PHONY: all clean format compress -- cgit 1.4.1