Updated custom installation functionality
parent
3f0912b2a7
commit
07602adbea
11
Makefile
11
Makefile
|
@ -26,6 +26,7 @@ help:
|
||||||
@echo " uninstall-global - Deletes a $(file-executable) executable from $(directory-global)/"
|
@echo " uninstall-global - Deletes a $(file-executable) executable from $(directory-global)/"
|
||||||
@echo " install-local - Installs a $(file-executable) executable in $(directory-local)/"
|
@echo " install-local - Installs a $(file-executable) executable in $(directory-local)/"
|
||||||
@echo " uninstall-local - Deletes a $(file-executable) executable from $(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 ""
|
||||||
@echo "Examples:"
|
@echo "Examples:"
|
||||||
@echo " make help"
|
@echo " make help"
|
||||||
|
@ -35,6 +36,9 @@ help:
|
||||||
@echo " sudo make uninstall-global"
|
@echo " sudo make uninstall-global"
|
||||||
@echo " make install-local"
|
@echo " make install-local"
|
||||||
@echo " make uninstall-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
|
.PHONY: install
|
||||||
|
@ -45,6 +49,7 @@ install:
|
||||||
uninstall:
|
uninstall:
|
||||||
@echo "Try running make help"
|
@echo "Try running make help"
|
||||||
|
|
||||||
|
# Uninstallation ---------------------------------------------------------
|
||||||
.PHONY: uninstall-local
|
.PHONY: uninstall-local
|
||||||
uninstall-local:
|
uninstall-local:
|
||||||
@echo "Uninstalling $(file-executable) from $(file-executable-local) ..."
|
@echo "Uninstalling $(file-executable) from $(file-executable-local) ..."
|
||||||
|
@ -55,6 +60,12 @@ uninstall-global:
|
||||||
@echo "Uninstalling $(file-executable) from $(file-executable-global) ..."
|
@echo "Uninstalling $(file-executable) from $(file-executable-global) ..."
|
||||||
@rm $(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
|
.PHONY: install-local
|
||||||
install-local: build
|
install-local: build
|
||||||
@echo "Moving $(file-executable-current) to $(file-executable-local) ..."
|
@echo "Moving $(file-executable-current) to $(file-executable-local) ..."
|
||||||
|
|
|
@ -152,9 +152,10 @@ This section assumes you have [downloaded rodo](#downloading-rodo).
|
||||||
|
|
||||||
### To install rodo to a custom directory
|
### To install rodo to a custom directory
|
||||||
|
|
||||||
|
**Warning**: You will have to manually uninstall custom installations
|
||||||
|
|
||||||
1. Run `cd rodo`
|
1. Run `cd rodo`
|
||||||
2. Run `make build`
|
2. Run `make install-custom custom-location=~/path/to/custom/location`
|
||||||
3. Move the `rodo` single-file executable to your desired directory
|
|
||||||
|
|
||||||
# Uninstalling rodo
|
# Uninstalling rodo
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue