Annotation of /branches/R11-stable/include/mbuild.sminc
Parent Directory | Revision Log
Revision 19316 -
(hide annotations)
(download)
Tue Sep 3 15:52:00 2013 UTC (11 years ago) by niro
File size: 650 byte(s)
Tue Sep 3 15:52:00 2013 UTC (11 years ago) by niro
File size: 650 byte(s)
-revert last commit
1 | niro | 1932 | # $Id$ |
2 | niro | 2 | # default magellan build |
3 | |||
4 | mbuild_src_prepare() | ||
5 | { | ||
6 | munpack ${SRCFILE} || die | ||
7 | } | ||
8 | |||
9 | mbuild_src_compile() | ||
10 | { | ||
11 | cd ${SRCDIR} | ||
12 | niro | 14373 | if [[ -x ./configure ]] |
13 | then | ||
14 | mconfigure || die | ||
15 | else | ||
16 | echo "mbuild: No configure found, skipping!" | ||
17 | fi | ||
18 | niro | 2 | mmake || die |
19 | } | ||
20 | |||
21 | niro | 9823 | mbuild_src_check() |
22 | { | ||
23 | cd ${SRCDIR} | ||
24 | niro | 9934 | mmake -j1 -k check || die |
25 | niro | 9823 | } |
26 | |||
27 | niro | 2 | mbuild_src_install() |
28 | { | ||
29 | cd ${SRCDIR} | ||
30 | niro | 1932 | mmake DESTDIR=${BINDIR} install || die |
31 | niro | 2 | |
32 | local i | ||
33 | niro | 9823 | for i in ABOUT-NLS ANNOUNCE AUTHORS BUGS CHANGES \ |
34 | ChangeLog COPYING FAQ LICENSE NEWS README TODO | ||
35 | niro | 2 | do |
36 | if [ -f ${SRCDIR}/${i} ] | ||
37 | then | ||
38 | minstalldocs ${i} || die | ||
39 | fi | ||
40 | done | ||
41 | } | ||
42 | |||
43 | niro | 9823 | export_inherits mbuild src_prepare src_compile src_check src_install |