updated custom installation

cleanup
m455 2020-07-07 11:25:35 -04:00
parent c407b67b8f
commit 9717be9b8d
1 changed files with 11 additions and 0 deletions

View File

@ -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) ..."