Skip to content

Commit beecdc1

Browse files
committed
Add uninstall_hooks make command
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
1 parent 4a8ec46 commit beecdc1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

makefile_include.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,9 @@ install_test: $(call print-help,install_test,Installs the self-test binary) test
516516
install_hooks: $(call print-help,install_hooks,Installs the git hooks)
517517
for s in `ls hooks/`; do ln -s ../../hooks/$$s .git/hooks/$$s; done
518518

519+
uninstall_hooks: $(call print-help,uninstall_hooks,Uninstalls the git hooks)
520+
for s in `ls hooks/`; do rm .git/hooks/$$s; done
521+
519522
HEADER_FILES=$(notdir $(HEADERS_PUB))
520523
.common_uninstall:
521524
$(UNINSTALL_CMD) $(DESTDIR)$(LIBPATH)/$(LIBNAME)

0 commit comments

Comments
 (0)