forked from lizardfs/lizardfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure
executable file
·51 lines (43 loc) · 958 Bytes
/
configure
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
49
50
51
#!/bin/sh
set -ue
# Parse command line options
doc=YES
for arg in ${1+"$@"}; do
case "$arg" in
--with-doc) doc=YES;;
--without-doc) doc=NO;;
*) echo "Unrecognized command line option '$arg'" >&2; exit 1;;
esac
done
cd "$(dirname "$0")"
mkdir -p build-pack
cd build-pack
rm -f CMakeCache.txt
if [ -z $LIZARDFS_OFFICIAL_BUILD ]; then
LIZARDFS_OFFICIAL_BUILD=NO
fi
if [ -z $LIZARDFS_SET_RC_BUILD_NUMBER ]; then
LIZARDFS_SET_RC_BUILD_NUMBER=NO
fi
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_TESTS=NO \
-DCMAKE_INSTALL_PREFIX=/ \
-DENABLE_DEBIAN_PATHS=YES \
-DENABLE_DOCS=$doc \
-DENABLE_OFFICIAL_BUILD=$LIZARDFS_OFFICIAL_BUILD \
-DSET_RC_BUILD_NUMBER=$LIZARDFS_SET_RC_BUILD_NUMBER \
-DENABLE_CLIENT_LIB=YES \
-DENABLE_NFS_GANESHA=YES
cat >../Makefile <<END
all:
make -C build-pack all
clean:
make -C build-pack clean
install:
make -C build-pack install
distclean:
rm -rf build-pack
rm -rf external/gtest*
rm -f Makefile
END