mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 06:32:10 +01:00
Use the proper $srcdir method instead of the $OBJ_DIR hack for allowing
Use the proper $srcdir method instead of the $OBJ_DIR hack for allowing separate build dirs.
This commit is contained in:
parent
61bdacfb59
commit
8c25d98d50
13
autogen.sh
13
autogen.sh
@ -1,6 +1,10 @@
|
||||
#!/bin/sh
|
||||
# Run this to generate all the initial makefiles, etc.
|
||||
|
||||
srcdir=`dirname $0`
|
||||
test -z "$srcdir" && srcdir=.
|
||||
|
||||
pushd $srcdir
|
||||
PROJECT=GLib
|
||||
TEST_TYPE=-f
|
||||
FILE=glib.h
|
||||
@ -56,14 +60,9 @@ aclocal $ACLOCAL_FLAGS
|
||||
|
||||
automake $am_opt
|
||||
autoconf
|
||||
popd
|
||||
|
||||
if [ -z "$OBJ_DIR" ]; then
|
||||
./configure "$@"
|
||||
else
|
||||
mkdir -p "$OBJ_DIR"
|
||||
cd "$OBJ_DIR"
|
||||
../configure "$@"
|
||||
fi
|
||||
$srcdir/configure "$@"
|
||||
|
||||
echo
|
||||
echo "Now type 'make' to compile $PROJECT."
|
||||
|
Loading…
x
Reference in New Issue
Block a user