initial commit
[squeep-indie-auther] / static / Makefile
diff --git a/static/Makefile b/static/Makefile
new file mode 100644 (file)
index 0000000..fa512e5
--- /dev/null
@@ -0,0 +1,14 @@
+.PHONY: all
+
+SOURCES = theme.css favicon.ico logo.svg
+TARGETS = $(SOURCES:=.gz) $(SOURCES:=.br)
+
+all: $(TARGETS)
+
+%.br: %
+       brotli --verbose --no-copy-stat --keep --force "$<"
+
+%.gz: %
+       cp "$<" "$<".tmp
+       gzip "$<".tmp
+       mv "$<".tmp.gz "$@"