sphinx: fix a few incorrect mrp_debug usages.
[profile/ivi/speech-recognition.git] / Makefile.am
1 SUBDIRS  = . utils src
2 #doc_DATA = AUTHORS ChangeLog COPYING INSTALL NEWS README
3
4 # This is the only way with automake I know of to force 'install-git-hooks'
5 # to be evaluated before 'all'. If there is a nicer way, I'm all ears...
6 BUILT_SOURCES = install-git-hooks
7
8 ###################################
9 # git hook management
10 #
11
12 install-git-hooks:
13         if test -d .git; then                                       \
14             for hook in githooks/???*; do                           \
15                 case $$hook in                                      \
16                     *.sample|*~|*.swp) continue;;                   \
17                 esac;                                               \
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##*/};              \
23                 fi                                                  \
24             done                                                    \
25         fi
26
27 check-git-hooks:
28         if test -d .git; then                                                \
29             for hook in githooks/???*; do                                    \
30                 case $$hook in                                               \
31                     *.sample|*~|*.swp) continue;;                            \
32                 esac;                                                        \
33                 if test -x $$hook -a ! -e .git/hooks/$${hook##*/}; then      \
34                     echo "";                                                 \
35                     echo "WARNING:";                                         \
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'...";     \
39                     echo "WARNING:";                                         \
40                     echo "";                                                 \
41                 fi                                                           \
42             done                                                             \
43         fi
44
45 # linker script generation
46 generate-linker-scripts:
47         $(MAKE) -C src $@
48
49 # cleanup
50 clean-local:
51         rm -f *~