build: fixed builddir != srcdir situations
Started to updating the build system in order to get rid of intltool
This commit is contained in:
+11
-5
@@ -2,8 +2,15 @@
|
||||
# Run this to generate all the initial makefiles, etc.
|
||||
set -e
|
||||
|
||||
autoreconf -i -f
|
||||
intltoolize --force --copy --automake
|
||||
srcdir=`dirname $0`
|
||||
test -z "$srcdir" && srcdir=.
|
||||
|
||||
olddir=`pwd`
|
||||
cd $srcdir
|
||||
|
||||
mkdir -p m4
|
||||
autoreconf --verbose --force --install || exit $?
|
||||
intltoolize --force --copy --automake || exit $?
|
||||
|
||||
if test -z "$NOCONFIGURE"; then
|
||||
run_configure=true
|
||||
@@ -20,6 +27,5 @@ else
|
||||
run_configure=false
|
||||
fi
|
||||
|
||||
if test $run_configure = true; then
|
||||
./configure "$@"
|
||||
fi
|
||||
cd "$olddir"
|
||||
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
|
||||
|
||||
Reference in New Issue
Block a user