-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (24 loc) · 1005 Bytes
/
Makefile
File metadata and controls
29 lines (24 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.PHONY: install install-create-container install-pull-config install-docs help
help:
@echo "opensource-server installation"
@echo ""
@echo "Available targets:"
@echo " make install - Install all components"
@echo " make install-create-container - Install create-a-container web application"
@echo " make install-pull-config - Install pull-config system"
@echo " make install-docs - Install documentation server"
@echo ""
install: install-create-container install-pull-config install-docs
SYSTEMD_DIR := create-a-container/systemd
SERVICES := $(wildcard $(SYSTEMD_DIR)/*.service)
install-create-container:
cd create-a-container && npm install --omit=dev
install -m 644 -o root -g root $(SERVICES) /etc/systemd/system/
systemctl daemon-reload || true
@for service in $(notdir $(SERVICES)); do \
systemctl enable $$service; \
done
install-pull-config:
cd pull-config && bash install.sh
install-docs:
cd mie-opensource-landing && uv run zensical build