forked from MinecraftServerControl/mscs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (19 loc) · 671 Bytes
/
Makefile
File metadata and controls
25 lines (19 loc) · 671 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
MSCS_USER := minecraft
MSCS_HOME := /opt/mscs
MSCS := /usr/local/bin/mscs
MSCS_SERVICE := /etc/systemd/system/mscs.service
MSCS_COMPLETION := /etc/bash_completion.d/mscs
.PHONY: install update clean
install:
adduser --system --group --home $(MSCS_HOME) --quiet $(MSCS_USER)
install -m 0755 mscs $(MSCS)
install -m 0644 mscs.service $(MSCS_SERVICE)
install -m 0644 mscs.completion $(MSCS_COMPLETION)
systemctl -f enable mscs.service
update:
install -m 0755 mscs $(MSCS)
install -m 0644 mscs.service $(MSCS_SERVICE)
install -m 0644 mscs.completion $(MSCS_COMPLETION)
clean:
systemctl -f disable mscs.service
rm -f $(MSCS) $(MSCS_SERVICE) $(MSCS_COMPLETION)