1 ACLOCAL_AMFLAGS = -I m4
3 SUBDIRS = . utils src doc
4 doc_DATA = AUTHORS ChangeLog COPYING INSTALL NEWS README
6 # This is the only way with automake I know of to force 'check-git-hooks'
7 # to be evaluated before 'all'. If there is a nicer way, I'm all ears...
8 BUILT_SOURCES = install-git-hooks
10 ###################################
15 if test -d .git; then \
16 for hook in githooks/???*; do \
18 *.sample|*~|*.swp) continue;; \
20 if test -x $$hook -a \
21 ! -x .git/hooks/$${hook##*/}; then \
22 echo "Installing git hook $${hook##*/}..."; \
23 cp $$hook .git/hooks; \
24 chmod a+x .git/hooks/$${hook##*/}; \
30 if test -d .git; then \
31 for hook in githooks/???*; do \
33 *.sample|*~|*.swp) continue;; \
35 if test -x $$hook -a ! -e .git/hooks/$${hook##*/}; then \
38 echo "WARNING: You have an uninstalled git hook $$hook"; \
39 echo "WARNING: Please, consider taking it into use by"; \
40 echo "WARNING: running 'make install-git-hooks'..."; \