aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJefferson Julio <[email protected]>2022-05-14 21:16:59 -0300
committerJefferson Julio <[email protected]>2022-05-14 21:16:59 -0300
commit336438e4cd053f73832cf0c94aef4b29ad2a81ad (patch)
tree9084d8084c64ffdceaff0b16ccbea86a7aae7c42 /Makefile
parentfbf272d4db1a28f4a56a9c8e8de9d0c6de33d218 (diff)
downloadrest-run-336438e4cd053f73832cf0c94aef4b29ad2a81ad.tar.bz2
rest-run-336438e4cd053f73832cf0c94aef4b29ad2a81ad.zip
License information, Makefile and README.md
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..dc3810d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+SCRIPT_NAME := rest-run
+
+ZSH_COMPLETION_DIR := /usr/local/share/zsh/site-functions
+
+prefix := /usr/local
+bindir := $(prefix)/bin
+
+install: install-bin install-zsh-completion
+
+install-bin:
+ mkdir -p $(bindir)
+ install -m 755 $(SCRIPT_NAME) $(bindir)/$(SCRIPT_NAME)
+
+install-zsh-completion:
+ mkdir -p $(ZSH_COMPLETION_DIR)
+ install -m 755 ./completions/zsh/_$(SCRIPT_NAME) $(ZSH_COMPLETION_DIR)/_$(SCRIPT_NAME)
+
+uninstall: uninstall-bin uninstall-zsh-completion
+
+uninstall-bin:
+ -rm $(bindir)/$(SCRIPT_NAME)
+
+uninstall-zsh-completion:
+ -rm $(ZSH_COMPLETION_DIR)/_$(SCRIPT_NAME)