Last change
on this file since 28868 was 28868, checked in by ak19, 10 years ago |
Dr Bainbridge got CMake to compile. C/CXX/LD Flags need to be exported for CMAKE, and before the configure step.
|
-
Property svn:executable
set to
*
|
File size:
613 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | cd $securitydir/$compiledir
|
---|
4 | prefix=$installdir
|
---|
5 | #echo `pwd`
|
---|
6 |
|
---|
7 | # If doing a make clean or distclean
|
---|
8 | if [ "x$1" != "x" ]; then
|
---|
9 | make $1
|
---|
10 | exit 0
|
---|
11 | fi
|
---|
12 |
|
---|
13 | # else, configure, make, make install
|
---|
14 |
|
---|
15 | # configure, but only if we haven't already
|
---|
16 | if [ ! -e config.h ] ; then
|
---|
17 | ./configure --prefix=$prefix
|
---|
18 | fi
|
---|
19 |
|
---|
20 | if [ $? != 0 ] ; then
|
---|
21 | echo "Error encountered when configuring $0"
|
---|
22 | exit 1
|
---|
23 | fi
|
---|
24 |
|
---|
25 | # make
|
---|
26 | make
|
---|
27 | if [ $? != 0 ] ; then
|
---|
28 | echo "Error encountered making $0"
|
---|
29 | exit 1
|
---|
30 | fi
|
---|
31 |
|
---|
32 | # make install
|
---|
33 | make install
|
---|
34 | if [ $? != 0 ] ; then
|
---|
35 | echo "Error encountered when installing $0"
|
---|
36 | exit 1
|
---|
37 | fi
|
---|
38 |
|
---|
39 | cd $securitydir |
---|
Note:
See
TracBrowser
for help on using the repository browser.