fixed makefile

main
Jesse Laprade 2020-07-22 16:46:11 -04:00
parent b16a1a70bf
commit dd51fe8ea9
1 changed files with 10 additions and 9 deletions

View File

@ -61,15 +61,15 @@ uninstall:
# Uninstallation --------------------------------------------------------- # Uninstallation ---------------------------------------------------------
.PHONY: uninstall-local .PHONY: uninstall-local
uninstall-local: uninstall-local:
@echo "Uninstalling $(program-name) from $(directory-local) ..." @echo "uninstalling $(program-name) from $(directory-local) ..."
@rm $(directory-local)/$(program-name) @rm $(directory-local)/$(program-name)
@echo "Uninstallation complete!" @echo "uninstallation complete!"
.PHONY: uninstall-global .PHONY: uninstall-global
uninstall-global: uninstall-global:
@echo "Uninstalling $(program-name) from $(directory-global) ..." @echo "uninstalling $(program-name) from $(directory-global) ..."
@rm $(directory-global)/$(program-name) @rm $(directory-global)/$(program-name)
@echo "Uninstallation complete!" @echo "uninstallation complete!"
# Installation ----------------------------------------------------------- # Installation -----------------------------------------------------------
.PHONY: install-custom .PHONY: install-custom
@ -92,13 +92,14 @@ install-global: build
@mv ./$(program-name) $(directory-global)/$(progam-name) @mv ./$(program-name) $(directory-global)/$(progam-name)
@echo "Installation complete!" @echo "Installation complete!"
.PHONY: clean
clean:
@echo "Deleting any $(program-name) executables found in your current folder ..."
@rm ./$(program-name)
build: build:
@echo "Creating a $(directory-source)/$(program-name) executable from $(directory-source)/$(program-source) ..." @echo "Creating a $(directory-source)/$(program-name) executable from $(directory-source)/$(program-source) ..."
@raco exe $(directory-source)/$(program-source) @raco exe $(directory-source)/$(program-source)
@echo "Moving $(directory-source)/$(program-name) executable to your current folder ..." @echo "Moving $(directory-source)/$(program-name) executable to your current folder ..."
@mv $(directory-source)/$(program-name) ./ @mv $(directory-source)/$(program-name) ./
.PHONY: clean
clean:
@echo "Deleting any $(program-name) executables found in your current folder ..."
@rm ./$(program-name)