mirror of
https://github.com/git-quick-stats/git-quick-stats.git
synced 2025-12-21 12:13:52 +01:00
Update man page on reinstall as well. Also remove unnecessary uninstall as the "install" command handles this gracefully.
41 lines
863 B
Makefile
41 lines
863 B
Makefile
PREFIX ?= /usr/local
|
|
TASK_DONE = echo -e "\n✓ $@ done\n"
|
|
|
|
.PHONY: test
|
|
|
|
all:
|
|
@echo "Usage:"
|
|
@echo " make install"
|
|
@echo " make reinstall"
|
|
@echo " make uninstall"
|
|
@echo " make test"
|
|
|
|
help:
|
|
$(MAKE) all
|
|
@$(TASK_DONE)
|
|
|
|
install:
|
|
install -d -m 0755 $(PREFIX)/bin
|
|
install -m 0755 git-quick-stats $(PREFIX)/bin/git-quick-stats
|
|
$(MAKE) man
|
|
@$(TASK_DONE)
|
|
|
|
uninstall:
|
|
rm -f $(PREFIX)/bin/git-quick-stats
|
|
rm -f $(PREFIX)/share/man/man1/git-quick-stats.1
|
|
@$(TASK_DONE)
|
|
|
|
reinstall:
|
|
@curl -sO https://raw.githubusercontent.com/arzzen/git-quick-stats/master/git-quick-stats
|
|
@curl -sO https://raw.githubusercontent.com/arzzen/git-quick-stats/master/git-quick-stats.1
|
|
$(MAKE) install
|
|
@$(TASK_DONE)
|
|
|
|
man:
|
|
install -d -m 0755 $(PREFIX)/share/man/man1/
|
|
install -m 0644 git-quick-stats.1 $(PREFIX)/share/man/man1/
|
|
|
|
test:
|
|
tests/commands_test.sh
|
|
@$(TASK_DONE)
|