diff options
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 \ |