system-controller: only override dst rectangle for apps.
[profile/ivi/murphy.git] / Makefile.am
index e2c8627..657bda0 100644 (file)
@@ -1,9 +1,12 @@
-SUBDIRS  = . src doc
-doc_DATA = AUTHORS ChangeLog COPYING INSTALL NEWS README
+AUTOMAKE_OPTIONS = foreign
+ACLOCAL_AMFLAGS = -I m4
+
+SUBDIRS  = . utils src doc
+doc_DATA = AUTHORS ChangeLog NEWS README
 
 # This is the only way with automake I know of to force 'check-git-hooks'
 # to be evaluated before 'all'. If there is a nicer way, I'm all ears...
-BUILT_SOURCES = check-git-hooks
+BUILT_SOURCES = install-git-hooks
 
 ###################################
 # git hook management
@@ -15,7 +18,8 @@ install-git-hooks:
                case $$hook in                                      \
                    *.sample|*~|*.swp) continue;;                   \
                esac;                                               \
-               if test -x $$hook; then                             \
+               if test -x $$hook -a                                \
+                     ! -x .git/hooks/$${hook##*/}; then            \
                    echo "Installing git hook $${hook##*/}...";     \
                    cp $$hook .git/hooks;                           \
                    chmod a+x .git/hooks/$${hook##*/};              \
@@ -30,14 +34,17 @@ check-git-hooks:
                    *.sample|*~|*.swp) continue;;                            \
                esac;                                                        \
                if test -x $$hook -a ! -e .git/hooks/$${hook##*/}; then      \
+                   echo "";                                                 \
                    echo "WARNING:";                                         \
                    echo "WARNING: You have an uninstalled git hook $$hook"; \
+                   echo "WARNING: Please, consider taking it into use by";  \
+                   echo "WARNING: running 'make install-git-hooks'...";     \
                    echo "WARNING:";                                         \
+                   echo "";                                                 \
                fi                                                           \
            done                                                             \
        fi
 
-
 # cleanup
 clean-local:
        rm -f *~