Makefile
SHELL=/bin/bash
SRC_FILES := $(shell find . -name \*.lisp)
murja: $(SRC_FILES)
./bin/build.sh
/opt/murja/murja: murja
cp murja /opt/murja/
# service magic
# feuerx-upcloud% systemctl show --property=UnitPath
# UnitPath=/etc/systemd/system.control /run/systemd/system.control /run/systemd/transie>
/usr/lib/systemd/system/Murja.service: systemd/murja.service
cp systemd/murja.service /usr/lib/systemd/system/Murja.service
systemctl daemon-reload
# the install job
.PHONY: install
install: murja
systemctl stop Murja
./bin/install.sh
# one can't `make` inside ./bin/install.sh
$(MAKE) /opt/murja/murja
$(MAKE) /usr/lib/systemd/system/Murja.service
chown -R murja:murja /opt/murja/
systemctl start Murja