Fix typos, add more info in README
[gwiad.git] / mk.modules
blob791c55065d65d2a03c4d480750f0c12403c5c822
1 ###########################################################################
2 #                              Vision2Pixels
4 #                           Copyright (C) 2007
5 #                       Pascal Obry - Olivier Ramonat
7 #   This library is free software; you can redistribute it and/or modify
8 #   it under the terms of the GNU General Public License as published by
9 #   the Free Software Foundation; either version 2 of the License, or (at
10 #   your option) any later version.
12 #   This library is distributed in the hope that it will be useful, but
13 #   WITHOUT ANY WARRANTY; without even the implied warranty of
14 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 #   General Public License for more details.
17 #   You should have received a copy of the GNU General Public License
18 #   along with this library; if not, write to the Free Software Foundation,
19 #   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 ###########################################################################
23 # Must be included when MODULES variable has been set
25 MODULES_SETUP = ${MODULES:%=%_setup}
27 MODULES_BUILD = ${MODULES:%=%_build}
29 MODULES_CHECK = ${MODULES:%=%_check}
31 MODULES_RUNTESTS = ${MODULES:%=%_runtests}
33 MODULES_INSTALL = ${MODULES:%=%_install}
35 MODULES_CLEAN = ${MODULES:%=%_clean}
37 ${MODULES_SETUP}:
38         ${MAKE} -C ${@:%_setup=%} setup $(OPTIONS)
40 ${MODULES_BUILD}:
41         ${MAKE} -C ${@:%_build=%} build $(OPTIONS)
43 ${MODULES_RUNTESTS}:
44         ${MAKE} -C ${@:%_runtests=%} runtests $(OPTIONS)
46 ${MODULES_INSTALL}:
47         ${MAKE} -C ${@:%_install=%} install $(OPTIONS)
49 ${MODULES_CLEAN}:
50         ${MAKE} -C ${@:%_clean=%} clean $(OPTIONS)
52 ${MODULES_CHECK}:
53         ${MAKE} -C ${@:%_check=%} check $(OPTIONS)
55 setup-default: $(MODULES_SETUP)
57 build-default: $(MODULES_BUILD)
59 install-default: $(MODULES_INSTALL)
61 clean-default: $(MODULES_CLEAN)
63 check-default: $(MODULES_CHECK)
65 runtests-default: $(MODULES_RUNTESTS)