Browse Source

updated makefile

tags/0.0.1
Jesse Laprade 3 months ago
parent
commit
2041b4d96e
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      Makefile

+ 7
- 0
Makefile View File

@@ -63,27 +63,34 @@ uninstall:
uninstall-local:
@echo "Uninstalling $(program-name) from $(directory-local) ..."
@rm $(directory-local)/$(program-name)
@echo "Uninstallation complete!"

.PHONY: uninstall-global
uninstall-global:
@echo "Uninstalling $(program-name) from $(directory-global) ..."
@rm $(directory-global)/$(program-name)
@echo "Uninstallation complete!"

# Installation -----------------------------------------------------------
.PHONY: install-custom
install-custom: build
@echo "Moving ./$(program-name) to $(location) ..."
@mv ./$(program-name) $(location)
@echo "Installation complete!"

.PHONY: install-local
install-local: build
@echo "Making $(directory-local) if it doesn't already exist ..."
@mkdir -p $(directory-local)
@echo "Moving ./$(program-name) to $(directory-local)/$(program-name) ..."
@mv ./$(program-name) $(directory-local)/$(progam-name)
@echo "Installation complete!"

.PHONY: install-global
install-global: build
@echo "Moving ./$(program-name) to $(directory-global)/$(program-name) ..."
@mv ./$(program-name) $(directory-global)/$(progam-name)
@echo "Installation complete!"

.PHONY: clean
clean:


Loading…
Cancel
Save