2015-03-03 19:38:46 -07:00
|
|
|
MSCS_USER := minecraft
|
|
|
|
MSCS_HOME := /opt/mscs
|
|
|
|
|
2015-07-04 06:21:58 -07:00
|
|
|
MSCS := /usr/local/bin/mscs
|
2015-03-03 19:38:46 -07:00
|
|
|
MSCS_SERVICE := /lib/systemd/system/mscs.service
|
2015-03-10 19:11:24 -07:00
|
|
|
MSCS_COMPLETION := /etc/bash_completion.d/mscs
|
2013-12-02 20:39:12 -07:00
|
|
|
|
2015-07-04 06:24:33 -07:00
|
|
|
.PHONY: install update clean
|
2013-12-02 20:39:12 -07:00
|
|
|
|
2015-03-03 19:38:46 -07:00
|
|
|
install:
|
|
|
|
adduser --system --group --home $(MSCS_HOME) --quiet $(MSCS_USER)
|
|
|
|
install -m 0755 mscs $(MSCS)
|
|
|
|
install -m 0644 mscs.service $(MSCS_SERVICE)
|
2015-03-10 19:11:24 -07:00
|
|
|
install -m 0644 mscs.completion $(MSCS_COMPLETION)
|
2015-03-03 19:38:46 -07:00
|
|
|
systemctl -f enable mscs.service
|
2013-12-02 20:39:12 -07:00
|
|
|
|
2015-07-04 06:24:33 -07:00
|
|
|
update:
|
|
|
|
install -m 0755 mscs $(MSCS)
|
|
|
|
|
2013-12-02 20:39:12 -07:00
|
|
|
clean:
|
2015-03-03 19:38:46 -07:00
|
|
|
systemctl -f disable mscs.service
|
|
|
|
rm -f $(MSCS) $(MSCS_SERVICE) $(MSCS_COMPLETION)
|
2013-12-02 20:39:12 -07:00
|
|
|
|