aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..79f800e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,31 @@
+# SPDX-License-Identifier: CC0-1.0
+
+# Copyright (C) 2022 Wojtek Kosior <koszko@koszko.org>
+#
+# Available under the terms of Creative Commons Zero v1.0 Universal.
+
+ifndef WEBSITE
+$(error `WEBSITE` not defined)
+endif
+
+ifndef DEST
+$(error `DEST` not defined)
+endif
+
+all: $(WEBSITE)/en/index.html
+
+$(WEBSITE)/en/index.html: $(WEBSITE)/index.html
+ sed 's/type="checkbox">/type="checkbox" checked>/' $< > $@
+
+install: $(WEBSITE)/en/index.html
+ mkdir -p "$(DEST)"/static
+ cp -r ./$(WEBSITE)/* "$(DEST)"
+ cp ./common-static-assets/* "$(DEST)"/static
+ cp ./LICENSES/LicenseRef-Normalize-CSS-MIT.txt \
+ $(DEST)/static/normalize-mit-license.txt
+ cp ./LICENSES/CC0-1.0.txt $(DEST)/static/cc0-1.0.txt
+
+clean:
+ rm -f $(WEBSITE)/en/index.html
+
+.PHONY: all install clean