-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
From now on `make` must be ran as a privileged user, such as root. For BSD you can use `doas`, Linux and macOS users can use `sudo` to gain such privileges. This change made the necessity for a separate `install` and `update` option obsolete, thus it has also been removed. The pipeline to test the Makefile on Ubuntu has also been altered to use sudo and remove the `update` test.
- Loading branch information
1 parent
906fc72
commit 6896d75
Showing
3 changed files
with
22 additions
and
44 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
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,31 +1,22 @@ | ||
PREFIX = $(HOME)/.local | ||
BIN = /usr/bin | ||
MAN_DIR = /usr/share/man/man1 | ||
SUDO := doas | ||
|
||
all: | ||
@echo Run \'make install\' to install BashPass. | ||
@echo Run \'make update\' to update BashPass. | ||
@echo Run \'make uninstall\' to uninstall BashPass. | ||
|
||
install: | ||
@echo Installing BashPass... | ||
@$(SUDO) install -v -m755 bashpass $(BIN) | ||
@$(SUDO) install -v -m644 docs/bashpass.1.gz $(MAN_DIR) | ||
@$(SUDO) install -v -m644 docs/bashpass.conf.1.gz $(MAN_DIR) | ||
install -v -m755 bashpass $(BIN) | ||
install -v -m644 docs/bashpass.1.gz $(MAN_DIR) | ||
install -v -m644 docs/bashpass.conf.1.gz $(MAN_DIR) | ||
@echo BashPass installed successfully! | ||
|
||
update: | ||
@echo Updating BashPass... | ||
@$(SUDO) install -v -m755 bashpass $(BIN) | ||
@$(SUDO) install -v -m644 docs/bashpass.1.gz $(MAN_DIR) | ||
@$(SUDO) install -v -m644 docs/bashpass.conf.1.gz $(MAN_DIR) | ||
@echo BashPass updated successfully! | ||
|
||
uninstall: | ||
@echo Uninstalling BashPass... | ||
@$(SUDO) rm -vf $(BIN)/bashpass | ||
@$(SUDO) rm -vf $(MAN_DIR)/bashpass.1.gz | ||
@$(SUDO) rm -vf $(MAN_DIR)/bashpass.conf.1.gz | ||
rm -vf $(BIN)/bashpass | ||
rm -vf $(MAN_DIR)/bashpass.1.gz | ||
rm -vf $(MAN_DIR)/bashpass.conf.1.gz | ||
@echo BashPass uninstalled successfully! | ||
@echo Bye, have a nice day! |
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