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