aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJavier Sepulveda <javier.sepulveda@uv.es>2023-07-10 09:13:59 +0200
committerJavier Sepulveda <javier.sepulveda@uv.es>2023-07-10 09:13:59 +0200
commit55cceac914977551f4e9a63034d2373eccd0bffd (patch)
treed8686694be8842a6a8bb5b462fd254d163f6368a /Makefile
downloadtaler-ops-www-55cceac914977551f4e9a63034d2373eccd0bffd.tar.gz
taler-ops-www-55cceac914977551f4e9a63034d2373eccd0bffd.tar.bz2
taler-ops-www-55cceac914977551f4e9a63034d2373eccd0bffd.zip
Initial replicated files (excluding hidden ones) from taler-systems-www
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a19ad83
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,35 @@
+# This file is in the public domain.
+
+include build-system/config.mk
+
+# All: build HTML pages in all languages.
+.PHONY: all
+all:
+ ./inc/update-messages
+ env "BASEURL=$(opt_baseurl)" ./inc/build-site
+
+.PHONY: run
+run: all
+ $(browser) http://0.0.0.0:8000/en &
+ $(python) -m http.server --directory rendered/
+
+variant = $(opt_variant)
+
+ifndef variant
+$(error variant is not set)
+endif
+
+.PHONY: install
+install: all
+ $(mkdir) -p $(prefix)/$(variant)
+ $(cp) -r rendered/* $(prefix)/$(variant)/
+ $(cp) -r rendered/.well-known/ $(prefix)/$(variant)/
+
+.PHONY: clean
+clean:
+ $(rm) -rf __pycache__ *.pyc *~ \.*~ \#*\#
+ $(rm) -rf rendered/
+
+.PHONY: submodules/update
+submodules/update:
+ $(git) submodule update --recursive --remote