File: build

package info (click to toggle)
alliance 5.0-20120515-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 70,180 kB
  • sloc: ansic: 350,295; vhdl: 34,227; yacc: 27,122; sh: 12,416; cpp: 9,478; makefile: 7,055; lex: 3,684
file content (48 lines) | stat: -rwxr-xr-x 1,342 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
#
# Filename: build
# Author: Czo <Olivier.Sirol@lip6.fr>
# License: GPL (http://www.gnu.org/copyleft/gpl.html)
# Started: Oct 2002
# Last Change: Monday 16 December 2002, 15:08
# Edit Time: 1:08:54
# Description:
#
# $Id: build,v 1.6 2005/01/19 15:13:42 hcl Exp $
#

# The way the configure and Makefiles are written
# implies that you do a "make install" in one step
# rather than a "make" followed by a "make install"
#
# To avoid make problems, please use gnu make (gmake)
# The fowllowing commands builds the full package from scratch.




echo "checking for GNU make..."

  _cv_gnu_make_command='' ;
                for a in "$MAKE" make gmake gnumake ; do
                        if test -z "$a" ; then continue ; fi ;
                        if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
                                _cv_gnu_make_command=$a ;
                                break;
                        fi
                done ;

        if test  "x$_cv_gnu_make_command" != "x"  ; then
                MAKE=$_cv_gnu_make_command;
                echo "found, $_cv_gnu_make_command";
        else
                MAKE=make;
                echo "Not found, using make";
        fi

export MAKE
#ALLIANCE_TOP=/opt/alliance
#export ALLIANCE_TOP
./configure --prefix=$ALLIANCE_TOP
$MAKE