aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-12-10 13:08:42 +0100
committerWojtek Kosior <koszko@koszko.org>2022-12-10 13:08:42 +0100
commit20ec27c878cb4dc571ffb789adb62320c56b4e24 (patch)
tree07ee2dc9c48b78d5c67e550b075a3019a3ef900d /Makefile
parentf8e1787c1a705902851b2f3aa87bceaa83f45147 (diff)
downloadsheets-websites-20ec27c878cb4dc571ffb789adb62320c56b4e24.tar.gz
sheets-websites-20ec27c878cb4dc571ffb789adb62320c56b4e24.zip
add updated websites files and facilitate deployment under Guix
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