source: trunk/IPs/systemC/processor/Morpheo/Behavioural/include_mkf/mkf_make.info @ 2

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 2.3 KB
Line 
1#    This file is part of MKF.
2#
3#    MKF is free software; you can redistribute it and/or modify
4#    it under the terms of the GNU General Public License as published by
5#    the Free Software Foundation; either version 2 of the License, or
6#    (at your option) any later version.
7#
8#    MKF is distributed in the hope that it will be useful,
9#    but WITHOUT ANY WARRANTY; without even the implied warranty of
10#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11#    GNU General Public License for more details.
12#
13#    You should have received a copy of the GNU General Public License
14#    along with MKF; if not, write to the Free Software
15#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16#
17#    Copyright (c) 2004 Alexandre Becoulet <alexandre.becoulet@epita.fr>
18
19# make invocation
20
21_if_var_eq              cmd_make
22 _if_in_path            gmake
23  var_define            cmd_make        gmake
24 _else
25  var_define            cmd_make        make
26 _end_if
27_end_if
28
29_if_in_path             {PVAR,cmd_make}
30 _if_stdout_match       GNU             {PVAR,cmd_make} -v -f /dev/null
31
32  msg_info              GNU make ({PVAR,cmd_make}) found
33
34  _if_var_eq            mkf_pretty_print        yes
35   command_add  enter   dir     @echo " * MAKE              {PWD}/{OUT}"
36   command_add  enter   dir     @{PVAR,cmd_make} -s all -C {OUT}
37   command_add  enter   dir     @echo "   MAKE (leave)      {OUT}"
38  _else
39   command_add  enter   dir     {PVAR,cmd_make} all -C {OUT}
40  _end_if
41
42  _if_var_eq            mkf_pretty_print        yes
43   command_add  clean   dir     @echo " * MAKE (clean)      {PWD}/{DIR}"
44   command_add  clean   dir     @{PVAR,cmd_make} -s clean -C {DIR}
45   command_add  clean   dir     @echo "   MAKE (leaving)    {DIR}"
46  _else
47   command_add  clean   dir     {PVAR,cmd_make} clean -C {DIR}
48  _end_if
49
50  _if_var_eq            mkf_pretty_print        yes
51   command_add  install dir     @echo " * MAKE (install)    {PWD}/{DIR}"
52   command_add  install dir     @{PVAR,cmd_make} -s install -C {DIR}
53   command_add  install dir     @echo "   MAKE (leave)      {DIR}"
54  _else
55   command_add  install dir     {PVAR,cmd_make} install -C {DIR}
56  _end_if
57
58 _else
59
60  msg_info              native make ({PVAR,cmd_make}) found
61  command_add   enter   dir     (cd {OUT} ; {PVAR,cmd_make} all)
62  command_add   clean   dir     (cd {DIR} ; {PVAR,cmd_make} clean)
63  command_add   install dir     (cd {DIR} ; {PVAR,cmd_make} install)
64
65 _end_if
66_else
67
68  msg_error             invalid or no make tool specified
69
70_end_if
71
72command_add     clean   file    rm -f {FILE}
73
Note: See TracBrowser for help on using the repository browser.