-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Installation path updated & execution time improved & redundant funct…
…ions removed
- Loading branch information
1 parent
bd5852e
commit f9e915f
Showing
3 changed files
with
40 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
DEST_DIR ?= /usr/bin | ||
PREFIX ?= /usr/local/ | ||
DEST_DIR ?= $(PREFIX)/bin | ||
TARGET_FILE ?= colpick | ||
SRC_FILE ?= colpick | ||
|
||
all: | ||
@echo Run \'make install\' to install colpick | ||
@echo Run \'make install\' to install $(SRC_FILE) | ||
@echo Run \'make uninstall\' to uninstall $(SRC_FILE) | ||
|
||
install: | ||
@cp colpick $(DEST_DIR)/colpick | ||
@chmod 755 $(DEST_DIR)/colpick | ||
@echo colpick has been installed | ||
@cp $(SRC_FILE) $(DEST_DIR)/$(TARGET_FILE) | ||
@chmod 755 $(DEST_DIR)/$(TARGET_FILE) | ||
@echo $(SRC_FILE) has been installed | ||
|
||
uninstall: | ||
@rm -rf $(DEST_DIR)/colpick | ||
@echo colpick has been uninstalled | ||
@rm -f $(DEST_DIR)/$(TARGET_FILE) | ||
@echo $(SRC_FILE) has been uninstalled | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters