Skip to content

Commit

Permalink
Makefile: fix install targets
Browse files Browse the repository at this point in the history
Use `install` and set propper permissions.

Fixes: #130
Signed-off-by: Valentin Rothberg <[email protected]>
  • Loading branch information
vrothberg committed Nov 4, 2020
1 parent 0fcb5a3 commit 42e7222
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,13 @@ endif

.PHONY: install
install: install-docs
cp $(BUILD_DIR)/$(NAME) $(BIN_DIR)
chmod 755 $(BIN_DIR)/$(NAME)
install -d -m 755 $(BIN_DIR)
install -m 755 $(BUILD_DIR)/$(NAME) $(BIN_DIR)

.PHONY: install-docs
install-docs: docs
sudo cp docs/*.1 ${MAN_DIR}/man1/
install -d -m 755 ${MAN_DIR}/man1
install -m 644 docs/*.1 ${MAN_DIR}/man1/

.PHONY: uninstall
uninstall:
Expand Down

0 comments on commit 42e7222

Please sign in to comment.