diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-02-09 16:59:15 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-02-09 17:15:40 +0100 |
commit | c52a81288630c53b4bbefcb15bfd4e8868cc5163 (patch) | |
tree | f220df3484c5a8dedaa0195523bda4bacdca66a8 /Makefile | |
parent | 48ca448bfca0c23ba44c3a8137610f81d546ae61 (diff) |
We use /bin/sh so we have an absolute path
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1,5 +1,7 @@ ERL ?= erl APP := simplec +USER_UNITS := ~/.config/systemd/user/ +SERVICE := $(APP).service .PHONY: deps @@ -26,6 +28,17 @@ test: all tags: find . -name "*.[he]rl" -print | etags - +install_user: test + cp priv/$(SERVICE) $(USER_UNITS)/$(SERVICE) + mkdir -p ~/bin/ + ln -s $$(realpath .)/$(APP) ~/bin/$(APP) + systemctl --user enable $(SERVICE) + +uninstall_user: + systemctl --user stop $(SERVICE) + systemctl --user disable $(SERVICE) + rm -f $(USER_UNITS)/$(SERVICE) ~/bin/$(APP) + DEPSOLVER_PLT=$(CURDIR)/.depsolver_plt $(DEPSOLVER_PLT): dialyzer --output_plt $(DEPSOLVER_PLT) --build_plt \ |