mirror of
https://github.com/arzzen/git-quick-stats.git
synced 2026-09-10 07:36:19 -04:00
cmd: make reinstall
This commit is contained in:
parent
daa7b94103
commit
75e3a87a24
8
Makefile
8
Makefile
|
|
@ -5,9 +5,13 @@ EXEC_FILES=git-quick-stats
|
|||
|
||||
all:
|
||||
@echo "usage: make install"
|
||||
@echo " make reinstall"
|
||||
@echo " make uninstall"
|
||||
@echo " make test"
|
||||
|
||||
help:
|
||||
$(MAKE) all
|
||||
|
||||
install:
|
||||
install -m 0755 $(EXEC_FILES) $(prefix)/bin
|
||||
git config --global alias.quick-stats '! $(prefix)/bin/$(EXEC_FILES)'
|
||||
|
|
@ -18,5 +22,9 @@ uninstall:
|
|||
rm -f $(EXEC_FILES) && \
|
||||
git config --global --unset alias.quick-stats
|
||||
|
||||
reinstall:
|
||||
$(MAKE) uninstall && \
|
||||
$(MAKE) install
|
||||
|
||||
test:
|
||||
tests/commands_test.sh
|
||||
|
|
|
|||
Loading…
Reference in a new issue