summaryrefslogtreecommitdiff
path: root/etherpad/Makefile
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-06-29 12:01:49 +0100
committerJoe Carstairs <me@joeac.net>2026-06-29 12:01:49 +0100
commit75ca9d485d3bc98e80396c566278b9db8ba54d4b (patch)
treed70ee7af710851eb0ad7554fde278db5584e77a8 /etherpad/Makefile
parent74dc86d56c823b0c86e323000d168a9cd9988d0f (diff)
adds etherpad module
Diffstat (limited to 'etherpad/Makefile')
-rw-r--r--etherpad/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/etherpad/Makefile b/etherpad/Makefile
new file mode 100644
index 0000000..8679ecf
--- /dev/null
+++ b/etherpad/Makefile
@@ -0,0 +1,23 @@
+ETHERPAD_VERSION := 3.3.2
+SRC_DIR := etherpad-$(ETHERPAD_VERSION)
+
+.PHONY: all
+all: download_etherpad install_deps
+
+.PHONY: download_etherpad
+download_etherpad: $(SRC_DIR)
+
+$(SRC_DIR):
+ wget -O- https://github.com/ether/etherpad/archive/refs/tags/v3.3.2.tar.gz | tar -xz
+
+.PHONY: install_deps
+install_deps: $(SRC_DIR)/node_modules
+
+$(SRC_DIR)/node_modules: $(SRC_DIR) $(SRC_DIR)/settings.json $(SRC_DIR)/package.json $(SRC_DIR)/pnpm-lock.yaml
+ cd $(SRC_DIR) && pnpm install
+
+$(SRC_DIR)/settings.json: $(SRC_DIR) settings.json
+ cp settings.json $(SRC_DIR)/settings.json
+
+clean:
+ rm -rf etherpad-*/