From 5d9f4889f984c13cc2c82231a492a6ab3cb92b1a Mon Sep 17 00:00:00 2001 From: Baptiste Beauplat Date: Sun, 3 Apr 2022 14:48:54 +0200 Subject: [PATCH 1/2] Fix Makefile indent --- Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 531470e..55ce5ae 100644 --- a/Makefile +++ b/Makefile @@ -6,21 +6,21 @@ PREFIX ?= /usr/local all: man mgitstatus.1: mgitstatus.1.md - pandoc ./$< -s -t man > $@ + pandoc ./$< -s -t man > $@ .PHONY: man man: mgitstatus.1 .PHONY: test test: - # SC1117 Backslash is literal in... - # SC2059 Don't use variables in the printf format string. But we need to or colors won't work - # SC2012 Use find instead of ls, but we need to extract the user id of the .git dir - shellcheck -e SC1117,SC2059,SC2012 mgitstatus + # SC1117 Backslash is literal in... + # SC2059 Don't use variables in the printf format string. But we need to or colors won't work + # SC2012 Use find instead of ls, but we need to extract the user id of the .git dir + shellcheck -e SC1117,SC2059,SC2012 mgitstatus .PHONY: install install: - install -d $(DESTDIR)$(PREFIX)/bin - install -d $(DESTDIR)$(PREFIX)/man/man1 - install -m 755 mgitstatus $(DESTDIR)$(PREFIX)/bin/ - install mgitstatus.1 $(DESTDIR)$(PREFIX)/man/man1/ + install -d $(DESTDIR)$(PREFIX)/bin + install -d $(DESTDIR)$(PREFIX)/man/man1 + install -m 755 mgitstatus $(DESTDIR)$(PREFIX)/bin/ + install mgitstatus.1 $(DESTDIR)$(PREFIX)/man/man1/ From 23e6733224df9c85cbe205d487157f47718bde18 Mon Sep 17 00:00:00 2001 From: Baptiste Beauplat Date: Sun, 3 Apr 2022 14:49:47 +0200 Subject: [PATCH 2/2] Fix manpage install directory (missing share) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 55ce5ae..a98614c 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,6 @@ test: .PHONY: install install: install -d $(DESTDIR)$(PREFIX)/bin - install -d $(DESTDIR)$(PREFIX)/man/man1 + install -d $(DESTDIR)$(PREFIX)/share/man/man1 install -m 755 mgitstatus $(DESTDIR)$(PREFIX)/bin/ - install mgitstatus.1 $(DESTDIR)$(PREFIX)/man/man1/ + install mgitstatus.1 $(DESTDIR)$(PREFIX)/share/man/man1/