Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)/share/man/man1
install -m 755 mgitstatus $(DESTDIR)$(PREFIX)/bin/
install mgitstatus.1 $(DESTDIR)$(PREFIX)/share/man/man1/