Updated custom installation functionality

main
Jesse Laprade 2020-07-07 11:24:23 -04:00
parent 3f0912b2a7
commit 07602adbea
2 changed files with 14 additions and 2 deletions

View File

@ -26,6 +26,7 @@ help:
@echo " uninstall-global - Deletes a $(file-executable) executable from $(directory-global)/"
@echo " install-local - Installs a $(file-executable) executable in $(directory-local)/"
@echo " uninstall-local - Deletes a $(file-executable) executable from $(directory-local)/"
@echo " install-custom - Installs a $(file-executable) executable in a custom location"
@echo ""
@echo "Examples:"
@echo " make help"
@ -35,6 +36,9 @@ help:
@echo " sudo make uninstall-global"
@echo " make install-local"
@echo " make uninstall-local"
@echo " make install-custom custom-location=~/bin/"
@echo ""
@echo "Note: You will have to manually uninstall custom installations"
.PHONY: install
@ -45,6 +49,7 @@ install:
uninstall:
@echo "Try running make help"
# Uninstallation ---------------------------------------------------------
.PHONY: uninstall-local
uninstall-local:
@echo "Uninstalling $(file-executable) from $(file-executable-local) ..."
@ -55,6 +60,12 @@ uninstall-global:
@echo "Uninstalling $(file-executable) from $(file-executable-global) ..."
@rm $(file-executable-global)
# Installation -----------------------------------------------------------
.PHONY: install-custom
install-custom: build
@echo "Moving $(file-executable-current) to $(custom-location) ..."
@mv $(file-executable-current) $(custom-location)
.PHONY: install-local
install-local: build
@echo "Moving $(file-executable-current) to $(file-executable-local) ..."

View File

@ -152,9 +152,10 @@ This section assumes you have [downloaded rodo](#downloading-rodo).
### To install rodo to a custom directory
**Warning**: You will have to manually uninstall custom installations
1. Run `cd rodo`
2. Run `make build`
3. Move the `rodo` single-file executable to your desired directory
2. Run `make install-custom custom-location=~/path/to/custom/location`
# Uninstalling rodo