Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
Added ability to select build target.
Browse files Browse the repository at this point in the history
Can now select to build all (libraries and ember) or just ember.
  • Loading branch information
joshthecoder committed Apr 4, 2009
1 parent d3c089f commit f411aca
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions hammer.sh
Expand Up @@ -12,10 +12,13 @@ function buildwf()
{
cd $SOURCE/forge/$1
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
./autogen.sh
./configure --prefix=$PREFIX
if [ ! -f "Makefile" ] ; then
echo " Generating makefile..."
./autogen.sh
./configure --prefix=$PREFIX
fi
make
make -s install
make install
}

mkdir -p $PREFIX $SOURCE $DEPS_SOURCE
Expand Down Expand Up @@ -112,7 +115,10 @@ elif [ $1 = "checkout" ] ; then
# Build source
elif [ $1 = "build" ] ; then
echo "Building sources..."


# Build libraries
if [ $2 = "libs" ] || [ $2 = "all" ] ; then

# Varconf
echo " Varconf..."
buildwf "libs/varconf"
Expand Down Expand Up @@ -148,11 +154,17 @@ elif [ $1 = "build" ] ; then
buildwf "libs/libwfut"
echo " Done."

fi

if [ $2 = "ember" ] || [ $2 = "all" ] ; then

# Ember client
echo " Ember client..."
buildwf "clients/ember"
echo " Done."

fi

echo "Build Done."

# Media
Expand Down

0 comments on commit f411aca

Please sign in to comment.