geml/Makefile

37 lines
767 B
Makefile

bin/geml-server: src/*.lisp
mkdir -p bin
sbcl --no-userinit --no-sysinit --non-interactive \
--load ~/quicklisp/setup.lisp \
--load build.lisp
clean:
-rm bin/geml-server
install: bin/geml-server
id -u geml &>/dev/null || useradd geml --system
install \
--target-directory /usr/local/bin/ \
--mode 744 \
--owner geml \
--group geml \
bin/geml-server
install \
--target-directory /etc/systemd/system/ \
--mode 644 \
--owner geml \
--group geml \
geml.service
mkdir -p /etc/geml/
install \
--target-directory /etc/geml/ \
--owner geml \
--group geml \
--mode 644 \
geml.example.ini
uninstall:
id -u geml &>/dev/null && userdel geml
rm /usr/local/bin/geml-server
rm /etc/systemd/system/geml.service
rm -rf /etc/geml/