d7463f75f9
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
27 lines
718 B
Bash
27 lines
718 B
Bash
#!/bin/sh
|
|
# Build application
|
|
|
|
# The first argument is debug or release
|
|
LEVEL=$1
|
|
|
|
# Then you can supply one or more makefile targets
|
|
TARGET="$2 $3 $4 $5 $6 $6 $7 $8 $9"
|
|
|
|
if [ "$1" = "" ] || [ "$2" = "" ]; then
|
|
echo Usage: makeapp debug/release full/wx/genericapp/cleanall
|
|
exit
|
|
fi
|
|
|
|
export APPDIR=$WXWIN/utils/configtool
|
|
export WXDIR=$WXWIN
|
|
export WXBUILDDIR=wxwin-build-$LEVEL
|
|
|
|
# If there's no wxwin-build-... directory yet, the makefile
|
|
# must include a dummy makeprog.env
|
|
export USEDUMMYMAKEPROG="0"
|
|
if [ ! -f $WXBUILDDIR/src/makeprog.env ]; then
|
|
USEDUMMYMAKEPROG="1"
|
|
fi
|
|
|
|
make -f ${APPDIR}/src/Makefile WXDIR=$WXDIR USEDUMMYMAKEPROG=$USEDUMMYMAKEPROG APPDIR=$APPDIR WXBUILDDIR=$WXBUILDDIR LEVEL=$LEVEL $TARGET
|