From 7a9e9c7f85ca09d125bee83046c04567bc909cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miodrag=20Toki=C4=87?= Date: Sun, 3 Feb 2019 18:10:06 +0100 Subject: [PATCH] Improve man install / uninstall - Create man directory prior to installing the page - Do not force root ownership of the man page - Remove man page when uninstalling --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 31efb23..19c7ee0 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,7 @@ install: uninstall: rm -f $(PREFIX)/bin/git-quick-stats + rm -f $(PREFIX)/share/man/man1/git-quick-stats.1 git config --global --unset alias.quick-stats @$(TASK_DONE) @@ -33,7 +34,8 @@ reinstall: @$(TASK_DONE) man: - install -g 0 -o 0 -m 0644 git-quick-stats.1 /usr/share/man/man1/ + install -d -m 0755 $(PREFIX)/share/man/man1/ + install -m 0644 git-quick-stats.1 $(PREFIX)/share/man/man1/ test: tests/commands_test.sh