FINDARGS= \( -name "*.html" -o -name "*.xml" -o -name "*.css" -o -name "*.js" \) all: hugo for f in `find public/ -type f $(FINDARGS)`; do \ echo "Compressing $$f..." ; \ gzip --keep --force -9 $$f ; \ brotli --keep --force -Z $$f ; \ done @echo "###########################################" @echo "### If you (re)moved files, remember to ###" @echo "#### delete them manually from public/ ####" @echo "###########################################"