1 SUBDIRS = . utils src doc
2 doc_DATA = AUTHORS ChangeLog COPYING INSTALL NEWS README
4 # This is the only way with automake I know of to force 'check-git-hooks'
5 # to be evaluated before 'all'. If there is a nicer way, I'm all ears...
6 BUILT_SOURCES = install-git-hooks
8 ###################################
13 if test -d .git; then \
14 for hook in githooks/???*; do \
16 *.sample|*~|*.swp) continue;; \
18 if test -x $$hook -a \
19 ! -x .git/hooks/$${hook##*/}; then \
20 echo "Installing git hook $${hook##*/}..."; \
21 cp $$hook .git/hooks; \
22 chmod a+x .git/hooks/$${hook##*/}; \
28 if test -d .git; then \
29 for hook in githooks/???*; do \
31 *.sample|*~|*.swp) continue;; \
33 if test -x $$hook -a ! -e .git/hooks/$${hook##*/}; then \
36 echo "WARNING: You have an uninstalled git hook $$hook"; \
37 echo "WARNING: Please, consider taking it into use by"; \
38 echo "WARNING: running 'make install-git-hooks'..."; \
45 # linker script generation
46 generate-linker-scripts: