Skip to content

Commit 2124b2e

Browse files
tobixenclaude
andcommitted
Merge PR fboender#51: Fix man install path
Use /share/man/man1 instead of /man/man1 for better FHS compliance. Updated uninstall target to match. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2 parents 9d87cc8 + 23e6733 commit 2124b2e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Makefile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,26 @@ PREFIX ?= /usr/local
66
all: man
77

88
mgitstatus.1: mgitstatus.1.md
9-
pandoc ./$< -s -t man > $@
9+
pandoc ./$< -s -t man > $@
1010

1111
.PHONY: man
1212
man: mgitstatus.1
1313

1414
.PHONY: test
1515
test:
16-
# SC1117 Backslash is literal in...
17-
# SC2059 Don't use variables in the printf format string. But we need to or colors won't work
18-
# SC2012 Use find instead of ls, but we need to extract the user id of the .git dir
19-
shellcheck -e SC1117,SC2059,SC2012 mgitstatus
16+
# SC1117 Backslash is literal in...
17+
# SC2059 Don't use variables in the printf format string. But we need to or colors won't work
18+
# SC2012 Use find instead of ls, but we need to extract the user id of the .git dir
19+
shellcheck -e SC1117,SC2059,SC2012 mgitstatus
2020

2121
.PHONY: install
2222
install:
23-
install -d $(DESTDIR)$(PREFIX)/bin
24-
install -d $(DESTDIR)$(PREFIX)/man/man1
25-
install -m 755 mgitstatus $(DESTDIR)$(PREFIX)/bin/
26-
install mgitstatus.1 $(DESTDIR)$(PREFIX)/man/man1/
23+
install -d $(DESTDIR)$(PREFIX)/bin
24+
install -d $(DESTDIR)$(PREFIX)/share/man/man1
25+
install -m 755 mgitstatus $(DESTDIR)$(PREFIX)/bin/
26+
install mgitstatus.1 $(DESTDIR)$(PREFIX)/share/man/man1/
2727

2828
.PHONY: uninstall
2929
uninstall:
30-
rm $(DESTDIR)$(PREFIX)/bin/mgitstatus
31-
rm $(DESTDIR)$(PREFIX)/man/man1/mgitstatus.1
30+
rm $(DESTDIR)$(PREFIX)/bin/mgitstatus
31+
rm $(DESTDIR)$(PREFIX)/share/man/man1/mgitstatus.1

0 commit comments

Comments
 (0)