system-controller: simplify set_appid and set the win area in it.
[profile/ivi/murphy.git] / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2 ACLOCAL_AMFLAGS = -I m4
3
4 SUBDIRS  = . utils src doc
5 doc_DATA = AUTHORS ChangeLog NEWS README
6
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
10
11 ###################################
12 # git hook management
13 #
14
15 install-git-hooks:
16         if test -d .git; then                                       \
17             for hook in githooks/???*; do                           \
18                 case $$hook in                                      \
19                     *.sample|*~|*.swp) continue;;                   \
20                 esac;                                               \
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##*/};              \
26                 fi                                                  \
27             done                                                    \
28         fi
29
30 check-git-hooks:
31         if test -d .git; then                                                \
32             for hook in githooks/???*; do                                    \
33                 case $$hook in                                               \
34                     *.sample|*~|*.swp) continue;;                            \
35                 esac;                                                        \
36                 if test -x $$hook -a ! -e .git/hooks/$${hook##*/}; then      \
37                     echo "";                                                 \
38                     echo "WARNING:";                                         \
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'...";     \
42                     echo "WARNING:";                                         \
43                     echo "";                                                 \
44                 fi                                                           \
45             done                                                             \
46         fi
47
48 # cleanup
49 clean-local:
50         rm -f *~